home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
tutor
/
scieqs13.lzh
/
EXAMPLE3
< prev
next >
Wrap
Text File
|
1988-10-19
|
583b
|
20 lines
!echo
; This file shows how to solve an equation for an unknown variable.
; Solve f(x) = x^3 - 2*x - 5 .
!solve x, [-100,0]: x^3 - 2*x - 5 ;please wait, this takes a few seconds!
; We did not find a solution in the interval -100 to 0. When this happens
; either there is no solution in the interval or the search interval is
; too large or includes singularity points.
!solve x, [0,100]: x^3 - 2*x - 5
; Here we did find a solution in the interval 0 to +100. The solution is
; stored in the variable 'x' after the solve command completes.
x
!noecho