/usr/share/openturns/validation/ValidDiff.txt is in openturns-validation 1.5-7build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | > restart:
> ValNum:=x=1,y=1;
> f1:=sqrt(x^2+y^2);
> f2:=arctan(y/x);
> g11:=diff(f1,x);
> g21:=diff(f1,y);
> g12:=diff(f2,x);
> g22:=diff(f2,y);
> evalf(subs(ValNum,<f1|f2>));
> evalf(subs(ValNum,<<g11,g21>|<g12,g22>>));
ValNum := x = 1, y = 1
2 2 1/2
f1 := (x + y )
f2 := arctan(y/x)
x
g11 := ------------
2 2 1/2
(x + y )
y
g21 := ------------
2 2 1/2
(x + y )
y
g12 := - -------------
/ 2 \
2 | y |
x |1 + ----|
| 2 |
\ x /
1
g22 := ------------
/ 2 \
| y |
x |1 + ----|
| 2 |
\ x /
[1.414213562, 0.7853981634]
[0.7071067810 -0.5000000000]
[ ]
[0.7071067810 0.5000000000 ]
>
|