beautypg.com

HP Prime Graphing Calculator User Manual

Page 393

background image

Functions and commands

389

fsolve

Returns the numerical solution of an equation or a system of

equations. With the optional third argument you can specify

a guess for the solution or an interval within which it is

expected that the solution will occur. With the optional fourth

argument you can name the iterative algorithm to be used by

the solver.

fsolve(Expr,Var,[Guess or Interval],[Method])

Example:

fsolve(cos(x)=x,x,-1..1,bisection_solver)

gives

[0.739085133215]

function_diff

Returns the derivative function of a function.

function_diff(Fnc)

Example:

function_diff(sin)

gives

(`x`)->cos(`x`)

gauss

Using the Gauss algorithm, returns the quadratic form of an

expression written as a sum or difference of squares of the

variables given in VectVar.

gauss(Expr,VectVar)

Example:

gauss(x^2+2*a*x*y,[x,y])

gives

(a*y+x)^2+(-

y^2)*a^2

GETPIX_C

Returns the color of the pixel G with coordinates x,y.

GETPIX_P([G], xposition, yposition)

G can be any of the graphics variables and is optional. The

default is G0, the current graphic.

GF

Creates a Galois Field of characteristic p with p^n elements.

GF(Intg(p),Intg(n))

Example:

GF(5,9)

gives

GF(5,k^9-k^8+2*k^7+2*k^5-k^2+2*k-

2,[k,K,g],undef)