content.txt 1.29 KB
!1 User Story 79: Function 'derivative'
http://yahscrum.akka.eu:8080/icescrum/p/AMDAKERNEL-79
!define path {../test/FitNesseRoot/ReleaseS/FirstPart/ReLease3/SprinT1/UserStory79/}
!define executable {EXE_AMDA_Kernel}
!2 Description
Numerical differentiation.

3 point Lagrangian interpolation (points {x0,y0; x1,y1; x2,y2}):
df/dx = y0*(2x-x1-x2)/(x01*x02) + y1*(2x-x0-x2)/(x10*x12)+y2*(2x-x0-x1)/(x20*x21),
where
x01= x0-x1; x02=x0-x2, x12=x1-x2...
Notes	

{x0,y0; x1,y1; x2,y2} => {x[i-1],y[i-1]; x[i],y[i]; x[i+1],y[i+1]}
calculate value (df/dx)[i] using three points i-1, i, i+1

First point (df/dx)[ 0] is calculated using points 0, 1, 2
Last point (df/dx)[n-1] is calculated using points n-3, n-2, n-1

!2 Liste des tests

!4 Tests : 
!|script|TestAmdaCommandLine|
|set|${path}|path|


!3 ID- complex parameter
!-paramID: deriv.xml -!
!-StartTile -!: 2008000000000000
!-TimeInt:-! 0000000010000000

output ascii file with parameter and calibration values
!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 79: id 142|id test|
|execute|${executable}|command|-f iso -p deriv -s 2008000000000000 -d 00000000010000000|args|
|check|result|0|
|check|diffOutputFile|test_79_142.txt|file1|output-deriv_2008000000000000.txt|file2|0.023|epsilon|0|


!2 suivi des modifications
Sans objet
-----
!contents -R2 -g -p -f -h