Activities 732
Running a Tutorial Script
Perform the following steps to write a script using the
Text Editor, test each line, and
observe the results in the history area on the Home screen.
Note: The command symbol C is accessed from the „ 1:Command toolbar menu.
2. Type the following lines into the
Text Editor.
1. Open the Text Editor, and create a
new variable named
demo1.
C
C
C
C
C
C
: Compute the maximum value of f on the closed interval [a,b]
: assume that f is differentiable on [a,b]
: define f(x)=x^3
N2x^2+xN7
: 1
!a:3.22!b
: d(f(x),x)
!df(x)
: zeros(df(x),x)
: f(ans(1))
: f({a,b})
: The largest number from the previous two commands is the
maximum value of the function. The smallest number is the
minimum value.