Post Reply 
Math Template - what is this?
10-24-2020, 05:52 AM
Post: #11
RE: Math Template - what is this?
(10-22-2020 02:40 AM)spiff72 Wrote:  It appears to be the "with operator". So you can enter x*2 | x=12 and it evaluates to 24 (as a simple example).

I am not sure what the value of this is, as it would be easier to just enter 12*2, but maybe there is a programmatic application for this?

The operator can be a real time saver. For example, it's easier to type
SIN(X)/(X^2+X+1)|X=1.2345
than
SIN(1.2345)/(1.2345^2+1.2345+1)

Also, if you want to then evaluate the expression at some other X value, all you have to is edit just the one value. In fact you can evaluate at multiple values simultaneously.

SIN(X)/(X^2+X+1)|X={1,2,3}

It's especially useful for evaluating a derivative at a point.

∂(SIN(X)/(X^2+X+1),X)|(X=1)

You could do all this by either storing a value in X, or by defining a function, but | is more convenient.

Whenever I read this out loud, I usually say "at X=1" or "where X=1".
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Math Template - what is this? - spiff72 - 10-22-2020, 02:05 AM
RE: Math Template - what is this? - Wes Loewer - 10-24-2020 05:52 AM
RE: Math Template - what is this? - Arno K - 10-22-2020, 01:17 PM



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