File: t_Function_operations.expout

package info (click to toggle)
openturns 1.24-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 66,204 kB
  • sloc: cpp: 256,662; python: 63,381; ansic: 4,414; javascript: 406; sh: 180; xml: 164; yacc: 123; makefile: 98; lex: 55
file content (48 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download | duplicates (3)
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
myFunction= class=ProductFunction name=Unnamed description=[x0,x1,x2,y0,y1] left function=[x0,x1,x2]->[x0^2 + 2 * x1 * x2 + 3 * x2] right function=[x0,x1,x2]->[x2 - x0 + x1,x0 + x1 * x0 + x2]
Value at  [1.2,2.3,3.4] =
[122.76,200.781]
Gradient at  [1.2,2.3,3.4] =
[[ -16.48  107.688 ]
 [  57.88   82.784 ]
 [  61.48   83.216 ]]
Hessian at  [1.2,2.3,3.4] =
sheet #0
[[  4.2  -4.4  -5.2  ]
 [ -4.4  13.6  23.4  ]
 [ -5.2  23.4  15.2  ]]
sheet #1
[[ 30.56 52.6  27.48 ]
 [ 52.6  16.32 30.64 ]
 [ 27.48 30.64 15.2  ]]
mySum= (([x0,x1,x2]->[x0 + 2 * x1 * x2 + 3 * x2,x2 - x0 + x1 * x0]) + ([x0,x1,x2]->[x0 + x1 + x2,-2 * x0 + 3 * x2 * x1 - x1]))
Value at  [1.2,2.3,3.4] =
[33.94,23.72]
Gradient at  [1.2,2.3,3.4] =
[[  2   -0.7 ]
 [  7.8 10.4 ]
 [  8.6  7.9 ]]
Hessian at  [1.2,2.3,3.4] =
sheet #0
[[ 0 0 0 ]
 [ 0 0 2 ]
 [ 0 2 0 ]]
sheet #1
[[ 0 1 0 ]
 [ 1 0 3 ]
 [ 0 3 0 ]]
myDiff= (([x0,x1,x2]->[x0 + 2 * x1 * x2 + 3 * x2,x2 - x0 + x1 * x0]) - ([x0,x1,x2]->[x0 + x1 + x2,-2 * x0 + 3 * x2 * x1 - x1]))
Value at  [1.2,2.3,3.4] =
[20.14,-13.8]
Gradient at  [1.2,2.3,3.4] =
[[  0    3.3 ]
 [  5.8 -8   ]
 [  6.6 -5.9 ]]
Hessian at  [1.2,2.3,3.4] =
sheet #0
[[  0  0  0 ]
 [  0  0  2 ]
 [  0  2  0 ]]
sheet #1
[[  0  1  0 ]
 [  1  0 -3 ]
 [  0 -3  0 ]]