Post Reply 
Equation of Tangent
11-18-2021, 11:51 PM
Post: #8
RE: Equation of Tangent
It turns out that the SLOPE function doesn't seem to work with expressions stored in variables so I had to make some changes to calculate the slope the old fashion way: by taking the first derivative.

Here's what i came up with:

PHP Code:
EXPORT TANGENT()
BEGIN
LOCAL f
B, fn, ffsf;
PRINT;
INPUT (fn, "Function:""f (X) =""Enter the algebraic expression");
EXPR("F"+fn)▶f;
INPUT (A"Study of the tangent at x =?"" X =");
PRINT (
"f (X) =" f);
PRINT (
"Equation of the tangent at " " :");
EVAL(
subst(diff(f,'X',1),'X=A'))▶sf;
EVAL(
subst(f,'X=A'))▶ff;
PRINT (
"Y =" sf "(X -" ") +" ff);
−sf ff ▶ B;
PRINT (
"that is: Y =" sf IFTE(B<0,"X -","X +") + ABS(B));
END

On the first input statement enter an integer, n (0 to 9) and it will use function Fn from the symbolic view of the function app.

-road
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Equation of Tangent - vjc - 11-02-2021, 05:46 PM
RE: Equation of Tangent - roadrunner - 11-03-2021, 03:13 PM
RE: Equation of Tangent - vjc - 11-04-2021, 02:52 AM
RE: Equation of Tangent - roadrunner - 11-04-2021, 12:35 PM
RE: Equation of Tangent - vjc - 11-05-2021, 01:05 AM
RE: Equation of Tangent - vjc - 11-09-2021, 06:33 AM
RE: Equation of Tangent - vjc - 11-12-2021, 10:07 PM
RE: Equation of Tangent - roadrunner - 11-18-2021 11:51 PM
RE: Equation of Tangent - vjc - 11-29-2021, 07:42 AM
RE: Equation of Tangent - roadrunner - 11-29-2021, 07:33 PM
RE: Equation of Tangent - vjc - 12-01-2021, 05:28 AM
RE: Equation of Tangent - vjc - 12-01-2021, 05:30 AM
RE: Equation of Tangent - roadrunner - 12-08-2021, 02:06 PM
RE: Equation of Tangent - vjc - 12-16-2021, 09:21 PM
RE: Equation of Tangent - RobbiOne - 12-19-2021, 11:28 PM



User(s) browsing this thread: 6 Guest(s)