[scilab-Users] Ellipse like plotting
Collette yann
yann.collette at scilab.org
Tue Dec 22 09:07:37 CET 2009
Hello,
You must use "dotted" operators to do such computations:
plot2d(x,-(x.^2)-((2)./(x-5)))
YC
Nikolay Kurevin a écrit :
> *Hi,
>
> I have found message below, but it still not answered.
> So, _any_ solution to plot function like "-(x^2)-(2/(x-5))" ?
>
> -->x=(1:0.1:4)';
>
> -->plot2d(x,-(x^2)-(2/(x-5)));
> !--error 9
> Inconsistent subtraction.
>
>
> Subject:* error plotting an ellipse
> <mailto:users at lists.scilab.org?subject=Re:%20error%20plotting%20an%20ellipse>
>
> *From:* Huub ####@####.####
> <http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=author&authorid=ppmnkejjnjlgdmgmcgbm&month=200901>
>
> *Date:* 9 Jan 2009 17:39:38 +0100
> *Message-Id:* <gk7uhp$mdn$1 at ger.gmane.org <mailto:1 at ger.gmane.org>>
> ------------------------------------------------------------------------
> Hi,
>
> Using scilab 4.1 on NetBSD/i386 4.0.1, I'm trying to plot an ellipse with
> equation (x^2/9) + (y^2/4) = 1. However, I get the error "inconsistent
> addition" which seems to be related to "+" and everything behind it:
>
>
>
> plot(((x**2)/9)+((y**2)/4)=1)
>
> (I made a snapshot, but Pan seems unable to insert it.) What is the
> reason for the error?
>
> Thanks for helping out.
>
> Huub
>
>
More information about the users
mailing list