Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.txt 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* Maxima computer algebra system */
  2. /* symbolic constants */
  3. [true, false, unknown, inf, minf, ind,
  4. und, %e, %i, %pi, %phi, %gamma];
  5. /* programming keywords */
  6. if a then b elseif c then d else f;
  7. for x:1 thru 10 step 2 do print(x);
  8. for z:-2 while z < 0 do print(z);
  9. for m:0 unless m > 10 do print(m);
  10. for x in [1, 2, 3] do print(x);
  11. foo and bar or not baz;
  12. /* built-in variables */
  13. [_, __, %, %%, linel, simp, dispflag,
  14. stringdisp, lispdisp, %edispflag];
  15. /* built-in functions */
  16. [sin, cosh, exp, atan2, sqrt, log, struve_h,
  17. sublist_indices, read_array];
  18. /* user-defined symbols */
  19. [foo, ?bar, baz%, quux_mumble_blurf];
  20. /* symbols using Unicode characters */
  21. [Љ, Щ, щ, Ӄ, ЩЩЩ, ӃӃЉЉщ];
  22. /* numbers */
  23. ibase : 18 $
  24. [0, 1234, 1234., 0abcdefgh];
  25. reset (ibase) $
  26. [.54321, 3.21e+0, 12.34B56];
  27. /* strings */
  28. s1 : "\"now\" is";
  29. s2 : "the 'time' for all good men";
  30. print (s1, s2, "to come to the aid",
  31. "of their country");
  32. /* expressions */
  33. foo (x, y, z) :=
  34. if x > 1 + y
  35. then z - x*y
  36. elseif y <= 100!
  37. then x/(y + z)^2
  38. else z - y . x . y;