@@ -67,6 +67,9 @@ LazyDiff( e, 1 )( dummy_input );;
67
67
# "(((Sin(x1))/(Cos(x1)))+((Sin(x2))^(2)))+((Cos(x2))^(2))", 1 )( [ x1, x2, x3 ] );
68
68
JacobianMatrixUsingPython( [ x1* Cos(x2)+ Exp(x3), x1* x2* x3 ] , [ 1 , 2 , 3 ] );
69
69
# ! [ [ "Cos(x2)", "-x1*Sin(x2)", "Exp(x3)" ], [ "x2*x3", "x1*x3", "x1*x2" ] ]
70
+ JacobianMatrix( [ " x1" , " x2" , " x3" ] , [ " x1*Cos(x2)+Exp(x3)" , " x1*x2*x3" ] ,
71
+ [ 1 , 2 , 3 ] )(dummy_input);
72
+ # ! [ [ Cos(x2), (-x1)*Sin(x2), Exp(x3) ], [ x2*x3, x1*x3, x1*x2 ] ]
70
73
LaTeXOutputUsingPython( e );
71
74
# ! "\\frac{\\sin{\\left(x_{1} \\right)}}{\\cos{\\left(x_{1} \\right)}}
72
75
# ! + \\sin^{2}{\\left(x_{2} \\right)} + \\cos^{2}{\\left(x_{2} \\right)}"
@@ -93,4 +96,15 @@ labels := List( points, point -> SelectBasedOnCondition( point[2] < 0.5, 0, 1 )
93
96
# ! 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
94
97
ScatterPlotUsingPython( points, labels : size := " 100" , action := " save" );;
95
98
# e.g, dir("/tmp/gaptempdirX7Qsal/")
99
+ AsCythonFunction( [ [ " x" , " y" ] , [ " z" ] ] , [ " f" , " g" ] , [ " x*y" , " Sin(z)" ] );;
100
+ # e.g.,
101
+ # cd /tmp/gaptempdirI6rq3l/
102
+ #
103
+ # start python!
104
+ #
105
+ # from cython_functions import f, g;
106
+ #
107
+ # # w = [ 2 entries :) ]
108
+ #
109
+ # # f(w)
96
110
# ! @EndExample
0 commit comments