Message Boards Message Boards

0
|
9012 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to plot with unknown variables? (geometric constructions)

Posted 9 years ago

How can one do geometric constructions with unknown variables in Mathematica? If:

p[x_] := x^2 + 2 x - 3

Plot[p[r], {r, -2 r, 2 r}]

Then error:

Plot::plln: Limiting value -2 r in {r,-2 r,2 r} is not a machine-sized real number. >>

POSTED BY: A Baker
3 Replies
POSTED BY: Marco Thiel
Posted 9 years ago
POSTED BY: nik tsak
Posted 9 years ago

This was probably a poor example of what I want to do. But I think the issue is Plot won't attempt to decide if a function can be plotted without numerical values.

For example f(x)=x is a known 'shape' over any domain.

Instead of assigning numerical input values can we just define the domain of x and/or exclude certain problem values? I noticed the Plot[…,{x}?reg] but not sure how it works.

Edit: p.s. the Manipulate idea is a good workaround

POSTED BY: A Baker
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