Skip to content
Property Value
Hex Value $A7
Categories
Localizations
  • FR: Tangente(

Tangent(

Overview

Draws a line tangent to expression at X=value with specified color #: 10-24 and line style linestyle #:1-2.
Color#: 10 - 24 or color name pasted from [vars] COLOR.

Availability: Token available everywhere.

Syntax

Tangent(expression,value[,color#,linestyle#])

Arguments

NameTypeOptional
expressionexpression
value
color#colorNumYes
linestyle#integerYes

Location

2nd, draw, DRAW, 5:Tangent(


Description

The Tangent( command draws a graph of an expression and then draws a line tangent to that expression, with the line touching the graph at the point of the specified value. You can either use a equation variable (such as Y1) or an expression in terms of X (such as X²). Though you can use equation variables from any graphing mode, they will be treated as functions in terms of X. Tangent( also ignores the graphing mode currently selected.

Here is a simple example, where we are graphing the parabola X2 and then drawing a tangent line at the value X=2.

:"X²→Y₁
:Tangent(Y₁,2

or

:Tangent(X²,2

Advanced Uses

Whether the graph shows up or not is dependent on the window dimensions of the graph screen, and you should use a friendly window to ensure it shows up as you intended.


Tangent( will update X and Y for each coordinate drawn (like DrawF and DrawInv), and exit with the last coordinate still stored.


When evaluating the expression using Tangent(, the calculator will ignore the following errors: ERR:DATA TYPE, ERR:DIVIDE BY 0, ERR:DOMAIN, ERR:INCREMENT, ERR:NONREAL ANS, ERR:OVERFLOW, and ERR:SINGULAR MAT. If one of these errors occurs, the data point will be omitted. However, the errors will still be thrown if they occur when evaluating the function at the point of tangency.


Using Ans as an optimization for storing to an equation will not work. For example, the following code returns ERR:DATA TYPE because Ans is a string, not an equation variable.

:"X²
:Tangent(Ans,2

Of course, you can use Ans in the equation, if it's a real number, but that's usually not as useful.

Error Conditions

  • ERR:INVALID is thrown if you try to use an equation variable that is undefined.

Source: parts of this page were written by the following TI|BD contributors: burr, DarkerLine, GoVegan.

History

Calculator OS Version Description
TI-82 1.0 Added
Authors: Adrien Bertrand