@@ -67,6 +67,9 @@ LazyDiff( e, 1 )( dummy_input );;
6767# "(((Sin(x1))/(Cos(x1)))+((Sin(x2))^(2)))+((Cos(x2))^(2))", 1 )( [ x1, x2, x3 ] );
6868JacobianMatrixUsingPython( [ x1* Cos(x2)+ Exp(x3), x1* x2* x3 ] , [ 1 , 2 , 3 ] );
6969# ! [ [ "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 ] ]
7073LaTeXOutputUsingPython( e );
7174# ! "\\frac{\\sin{\\left(x_{1} \\right)}}{\\cos{\\left(x_{1} \\right)}}
7275# ! + \\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 )
9396# ! 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
9497ScatterPlotUsingPython( points, labels : size := " 100" , action := " save" );;
9598# 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)
96110# ! @EndExample
0 commit comments