How to plot vertical lines

in #steemstem7 years ago (edited)

curve_0.png


Some graphing software or calculators (on a certain mode) can plot curves only when y is expressed as a function of x. So how do you plot vertical lines? The answer is that you cannot. It is impossible.

However ...

there is a trick you can use. A vertical line, by right, has "infinite" gradient. Instead of using lines with literally infinite gradient, we can use lines with very high gradients e.g. 99999. If we want to simulate a vertical line x = d passing through the x-axis at (d, 0), we can use the equation y = 99999(x - d). You can easily check that this straight line has a gradient of 99999 and when x = d, y = 0.

For the purpose of visualising the definite integral , I want to draw the vertical lines x = 2 and x = 4 onto my TI-84 Plus C Silver Edition (Emulator). So I keyed in the equation for the curve, as well as y = 99999(x - 2) and y = 99999(x - 4) into the equations panel.

curve_1.png

And here is the result.

curve_2.png

The green colour to shade the region of interest was added for fun, and was not in the original output. This trick should work for any other graphing calculator and software.

By the way, TI-84 has another mode, the parametric mode in which drawing of x = d can be drawn easily via x = d and y = t (parameter). However, I did not want to change mode.

Anyway, I have proven that
"The impossible we do at once. Miracles take a little longer".


Announcements

You might also want to read my recent posts:
Visual Division of Non-Unit Fractions
The Sharp Mathematics Contest #2 -- Winners

If you find my articles useful or interesting, please upvote and resteem them! Thanks !

Cheers!!!

@tradersharpe
-- promoting sharp minds

Sort:  

That is such a simple solution yet I can't believe I've never thought of that before. Thanks for sharing!

@cmtzco has voted on behalf of @minnowpond. If you would like to recieve upvotes from minnowponds team on all your posts, simply FOLLOW @minnowpond.

To receive an upvote send 0.25 SBD to @minnowpond with your posts url as the memo
To receive an reSteem send 0.75 SBD to @minnowpond with your posts url as the memo
To receive an upvote and a reSteem send 1.00SBD to @minnowpond with your posts url as the memo

@royrodgers has voted on behalf of @minnowpond. If you would like to recieve upvotes from minnowponds team on all your posts, simply FOLLOW @minnowpond.

        To receive an upvote send 0.25 SBD to @minnowpond with your posts url as the memo
        To receive an reSteem send 0.75 SBD to @minnowpond with your posts url as the memo
        To receive an upvote and a reSteem send 1.00SBD to @minnowpond with your posts url as the memo

@reported has voted on behalf of @minnowpond. If you would like to recieve upvotes from minnowponds team on all your posts, simply FOLLOW @minnowpond.

        To receive an upvote send 0.25 SBD to @minnowpond with your posts url as the memo
        To receive an reSteem send 0.75 SBD to @minnowpond with your posts url as the memo
        To receive an upvote and a reSteem send 1.00SBD to @minnowpond with your posts url as the memo

Calling @originalworks :)
img credz: pixabay.com
Nice, you got a 100.0% @welcomebot upgoat, thanks to @reggaemuffin
Want a boost? Minnowbooster's got your back!

The @OriginalWorks bot has determined this post by @tradersharpe to be original material and upvoted it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!
For more information, Click Here!
Special thanks to @reggaemuffin for being a supporter! Vote him as a witness to help make Steemit a better place!

Coin Marketplace

STEEM 0.32
TRX 0.11
JST 0.034
BTC 66384.36
ETH 3272.25
USDT 1.00
SBD 4.27