Message Boards Message Boards

0
|
3453 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Output of plotting an equation?

I accidentally gave Plot[] an equation as an argument. It returned a plot instead of an error. Can someone tell me how Plot[] interpreted the argument to arrive at the plot it returned?

POSTED BY: Jay Gourley
2 Replies

Interesting! How about this:

Plot[x^2 == 2 x, {x, -3, 3}]

It would seem that Plot[a == b,...] is evaluated as if it were Plot[Subtract[a, b],...]. This way you can visualize the solutions of a==b as the intersections of the plot with the x-axis. This is the only justification that comes to mind.

POSTED BY: Gianluca Gorni

It plotted f(x)=x^2 - 2. I think this is a normal behavior, that is expected when someone wants to plot the solutions of an equation.

POSTED BY: Ahmed Elbanna
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract