The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Equation of Tangent
11-02-2021, 05:46 PM
Post: #1
Equation of Tangent
Hi all,
The HP prime does not show the equation of a tangent. It just draws a tangent.
I tried writing a program where I can put in an equation and specify the X value where the tangent is supposed to be, but am coming up with wrong answer. I am not very conversant with programming, Can anyone look into it and correct the program. Thanks.

TANGENT EXPORT ()
BEGIN
LOCAL f, B;
PRINT;
INPUT (f, "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) + "X +" + B);
END;
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: 1 Guest(s)