OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: froonk on October 28, 2005, 01:15:23 pm
-
Hi everyone,
I use gnuplot on my Z5500. If I write 'plot x**2' it plots a line at y=2.
I guess the ** operator does not work properly. I've not tested every operator so far, but I know that 2*x works. Does anyone share this experience?
Thanks in advance.
-
Try 'plot x^2', the syntax for gunplot may be different.
This sounds like a gnuplot syntax issue rather than something specific to the Zaurus.
Si
-
Try 'plot x^2', the syntax for gunplot may be different.
This sounds like a gnuplot syntax issue rather than something specific to the Zaurus.
thanks for your reply, lardman.
'plot x^2' returned 'non-integer passed to boolean operator'.
'^' is the operator for bitwise or, which makes sense to me with the error message above.
I thought it could be a zaurus issue, because I read somewhere, that strongARM processors do not know floating-point instructions (correct me if I'm wrong, I don't really know anything about the ARM-Architecture, or what would happen, if one is compiling c-code that is meant to run on another arch.).
Also, I have now noticed that the problem occurs also with exp() and (therefor?) with sine and cosine.
-
Interesting. There should be no issue regarding fp as this is emulated.
Is this the version of gnuplot from the OZ feed?
Si
-
No, it's not. I'm using opie 3.5.2, I didn't find gnuplot there. I now saw that there is gnuplot in the 3.5.3 feed, I will install 3.5.3 and use the gnuplot from the OZ feed as soon as I have a little more time.
-
This isn't exactly the same thing but I'm using QTPlot on both my 6000 & 5600 machines. With it, x**2 gives you a plot of X squared.
-
I imagine the problem was caused because the gnuplot binary in question is not built for soft-float.
Si