EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Tip List

Texas Instruments TI-89
507 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #185 background imageLoading...
Page #185 background image
func
©Convert vector v to polar
[RPr(v[1,1],v[1,2]),RPθ(v[1,1],v[1,2])]
EndFunc
rect(v)
func
©Convert vector v to rectangular
[PRx(v[1,1],v[1,2]),PRy(v[1,1],v[1,2])]
EndFunc
polar([1,1])
returns [[(2),Œ/4]]. rect([[(2),Œ/4]]) returns [1,1]. Note that these routines
assume the current Angle Mode setting. If the angle mode is radians, then the angles are in radians. If
you or your application expect the arguments or results to be in degrees or radians, set the proper
mode.
(Credit to Sam Jordan for prompting my write-up; code (and bugs) are mine)
[6.26] Accurate numerical derivatives with nDeriv() and Ridder's method
This tip is lengthy. It is divided into these sections:
! Optimum results from nDeriv. How to use the built-in nDeriv() function to get the most accurate
results, with a function called nder2().
! More accurate results with Ridders' method. Shows a method (Ridders') that gives much better
results than nDeriv(), with a program called nder1().
! Diagnosing nder1() with nder1p(). Shows how to fix errors that might occur with the Ridders'
method program.
! General comments on numerical differentiation. General concerns with any numerical differentiation
method.
! More comments on nder1() and Ridders' method. Lengthy discussion of nder1() results,
performance, and also some interesting behavior of the built-in nDeriv() function.
In general, the most accurate method to find a numerical derivative is to use the CAS to find the
symbolic derivative, then evaluate the derivative at the point of interest. For example, to find the
numeric derivative of tan(x), where x = /2.01 = 1.562981..., find
d
dx
tan(x)=
1
(
cos
(
x
))
2
= 16374.241898666
This method fails when the CAS cannot find a symbolic expression for the derivative, for example, for a
complicated user function. The 89/92+ provide two built-in functions for finding numerical derivatives:
avgRC() and nDeriv(). avgRC() uses the forward difference to approximate the derivative at x:
avgRC(f(x),x,h)=
f(x+h)−f(x)
h
and nDeriv() uses the central difference to approximate the derivative:
nDeriv(f(x),x,h)=
f(x+h)−f(xh)
2h
6 - 27

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals