beautypg.com

HP Prime Graphing Calculator User Manual

Page 392

background image

388

Functions and commands

fMax

Returns the value of the abscissa at the maximum value of an

expression. Without a second argument, it is assumed that it

the abscissa is x. With a variable as second argument, it is

taken as the abscissa.

fMax(Expr,[Var])

Example:

fMax(-x^2+2*x+1,x)

gives

1

fMin

Returns the value of the abscissa at the minimum value of an

expression. Without a second argument, it is assumed that it

the abscissa is x. With a variable as second argument, it is

taken as the abscissa.

fMin(Expr,[Var])

Example:

fMin(x^2-2*x+1,x)

gives

1

FOR

Used in programming in loops for which the number of

iterations is known.

format

Returns a real number as a string with the indicated format

(f=float, s=scientific, e=engineering).

format(Real,Str("f4"||"s5"||"e6"))

Example:

format(9.3456,"s3")

gives

9.35

fracmod

For a given integer n (representing a fraction) and an integer

p (the modulus), returns the fraction a/b such that n=a/b(mod

p).

fracmod(Intg(n),Intg(p))

Example:

fracmod(41,121)

gives

2/3

froot

Returns the list of roots and poles of a rational polynomial.

Each root or pole is followed by its multiplicity.

froot(RatPoly)

Example:

froot((x^5-2*x^4+x^3)/(x-3))

gives

[0,3,1,2,3,-

1]