Skip to content

Instantly share code, notes, and snippets.

@hig3
Last active September 13, 2017 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hig3/4b496c10e3e6fd0a6da6d1a98a6028f0 to your computer and use it in GitHub Desktop.
Save hig3/4b496c10e3e6fd0a6da6d1a98a6028f0 to your computer and use it in GitHub Desktop.
test.php
<?php
$x1=range(1,3);
$y1=range(1,3);
$x2=range(1,3);
$y2=range(1,3);
condition:ne($y1,$y2);
$ans=maple("x-($x1)=(($x2)-($x1))/(($y2)-($y1))*(y-($y1))");
$ansdisp=maple("print(MathML[ExportPresentation]($ans))");
$grade=maple("proc(A,R) evalb(simplify(solve(A,x)-solve(R,x))=0) end proc;");
$ansplot=plotmaple("plot([solve($ans,x),y,y=-3..3],labels=[x,y])");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment