home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / scieqs14.zip / EXAMPLE3 < prev    next >
Text File  |  1988-10-19  |  583b  |  20 lines

  1. !echo
  2. ; This file shows how to solve an equation for an unknown variable.
  3.  
  4. ; Solve  f(x) = x^3 - 2*x - 5 .
  5.  
  6. !solve x, [-100,0]:  x^3 - 2*x - 5    ;please wait, this takes a few seconds!
  7.  
  8. ; We did not find a solution in the interval -100 to 0.  When this happens
  9. ; either there is no solution in the interval or the search interval is
  10. ; too large or includes singularity points.
  11.  
  12. !solve x, [0,100]:  x^3 - 2*x - 5
  13.  
  14. ; Here we did find a solution in the interval 0 to +100.  The solution is
  15. ; stored in the variable 'x' after the solve command completes.
  16.  
  17. x
  18.  
  19. !noecho
  20.