clear all ; A semicolon is the line comment character. ; Equations are entered by just typing them in: c^2=a^2+b^2 ; The Pythagorean Theorem. ; The entered equation becomes the current equation. ; The current equation is solved by typing in a variable name: c ; Solve for c. ; "sign" variables are two-valued variables and may only be +1 or -1. b ; Solve for b. ; To generate C language code, use the code command: code C code java ; Mathomatic can also generate Java code python ; and Python code. ; ******************************************************************** a=b+1/b ; enter another equation solve verify b ; solve for b, verifying the result a ; solve back for a simplify ; ******************************************************************** ; Mathomatic is also handy as a calculator. ; Expressions without variables are instantly evaluated: 2+3 2^.5 ; the square root of 2, rounded to 14 digits: ; ******************************************************************** 27^y=9 ; an example that uses numerical logarithms solve verify y ; solve for y, verifying the result ; ******************************************************************** 3*x^2+2*x-5 = 27 solve verify x ; solve for x, verifying the result simplify calculate ; expand "sign" variables and approximate, prompting for any variables in the RHS