home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / j / jacal1a0.zip / jacal / demo < prev    next >
Text File  |  1992-12-24  |  677b  |  43 lines

  1. set echogrammar standard;
  2. /*Running demo, a test batch file.
  3.  
  4. Entering a simple formula: */a-b;
  5. /*generating a simple radical
  6.  
  7. */
  8. rad:%^(1/2);
  9. /*Now that the simple radical has been defined, it will split any
  10. radicals of which it is a factor
  11.  
  12. */
  13. rad2:(a^2-b^2)^(1/2);
  14. /*The total differential is:
  15.  
  16. */
  17. %';
  18. /*The derivative with respect to b is:
  19.  
  20. */
  21. diff(rad2,b);
  22. /*lets try generating a 3rd order field extension
  23.  
  24. */
  25. foo3:{a|a^3+a*x+y};
  26. /*does the original formula extinguish the extension?
  27.  
  28. */
  29. %^3+%*x+y;
  30. /*now, lets see what the derivative
  31. in terms of the field extension is
  32.  
  33. */
  34. foo3';
  35. /*The derivative with respect to x is:
  36.  
  37. */
  38. diff(foo3,x);
  39. /*done
  40.  
  41. */
  42. set echogrammar null;
  43.