Equation of Tangent
|
11-09-2021, 06:33 AM
Post: #6
|
|||
|
|||
RE: Equation of Tangent
The working program, if needed by anyone else, is as follows:
(Credit goes to roadrunner to correct my shoddy programming) BEGIN LOCAL f, B; PRINT; INPUT ({{f,[2],40}}, "Function:", "f (X) =", "Enter the algebraic expression"); f ▶ F1; INPUT (A, "Study of the tangent at x =?", " X ="); PRINT ("f (X) =" + F1); PRINT ("Equation of the tangent at " + A + " :"); PRINT ("Y =" + SLOPE (F1, A) + "(X -" + A + ") +" + F1 (A)); −SLOPE (F1, A) * A + F1 (A) ▶ B; PRINT ("that is: Y =" + SLOPE (F1, A) + IFTE(B<0,"X -","X +") + ABS(B)); END; There is scope for improvement here but is beyond my limited programming skills. I would love if instead of typing in the algebraic expression at the very first input, we would just type, say 1, and it would pick up the expression F1(X) from function symbolic view, and similarly pressing 2 would pick up the expression F2(X) from function symbolic view and so on. This will save the effort of retyping or copy-pasting the entire expression. Any ideas anyone?? |
|||
« Next Oldest | Next Newest »
|
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: 3 Guest(s)