Ellipse like plotting

Nikolay Kurevin kurevin at gmail.com
Tue Dec 22 00:15:58 CET 2009


*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<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>
------------------------------

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20091222/c952c866/attachment.htm>


More information about the users mailing list