beautypg.com

HP Prime Graphing Wireless Calculator User Manual

Page 190

background image

186

Functions and commands

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 (as a mapping).

function_diff(Fnc)

Example:

function_diff(sin)

gives

(_x)→cos(_x)

gauss

Given an expression followed by a vector of variables, uses

the Gauss algorithm to return the quadratic form of the

expression written as a sum or difference of squares of the

variables given in the vector.

gauss(Expr,VectVar)

Example:

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

gives

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

y^2)*a^2

GF

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

GF(Integerp, Integern)

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)

gramschmidt

Given a basis of a vector subspace, and a function that

defines a scalar product on this vector subspace, returns an

orthonormal basis for that function.

gramschmidt(Vector, Function)