Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't draw a part of a circle

Status
Not open for further replies.

skiabox

Computer
Joined
May 27, 2009
Messages
1
Location
CA
I am trying to draw a part of a circle using this function

f(x):= 9x(5-4x)(11-4x)/2(2-x)^2

I have tried both x-y plot and polar plot but when I place f(x) in the y-axis I always get the same error message(illegal function value).

Any ideas how to fix that?

Thank you very much.
 
You need to define an array variable, say i:=0..100, then vector of x's, then put x[i on the x axis and f(x[i) on the y axis.
 
> You have what appears to be a line with a notch in it.

> Assuming that your equation will be fixed, you cannot use a single equation to describe a circle, since negative values of y require a separate equation.

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top