Author Topic: Gnuplot  (Read 5561 times)

froonk

  • Newbie
  • *
  • Posts: 4
    • View Profile
Gnuplot
« 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.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Gnuplot
« Reply #1 on: October 29, 2005, 06:55:21 am »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

froonk

  • Newbie
  • *
  • Posts: 4
    • View Profile
Gnuplot
« Reply #2 on: October 31, 2005, 04:37:20 am »
Quote
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.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Gnuplot
« Reply #3 on: October 31, 2005, 06:28:50 am »
Interesting. There should be no issue regarding fp as this is emulated.

Is this the version of gnuplot from the OZ feed?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

froonk

  • Newbie
  • *
  • Posts: 4
    • View Profile
Gnuplot
« Reply #4 on: November 01, 2005, 01:01:14 pm »
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.

Tehas

  • Full Member
  • ***
  • Posts: 157
    • View Profile
    • http://users.adelphia.net/~stonerrl/rick/
Gnuplot
« Reply #5 on: November 02, 2005, 07:49:50 pm »
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.
+SL-5600 v1.32 ROM (Special pre-emptive kernel with overclock)  +Viking 256CF  +SimpleTech 256CF  +Viking 128SD (as ext2)  +AmbiCom WL1100C +Micro Innovations KB  +Hawking Ethernet CF  
+SL6000L +Lexar 1GB SD (as ext2)  +Windows 98/Me/Nt/XP  +Mandrake 8.1 My Zaurus Page[img]http://users.adelphia.net/~stonerrl/rick/rls_userbar.gif\" border=\"0\" class=\"linked-sig-image\" /]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Gnuplot
« Reply #6 on: November 03, 2005, 06:51:12 am »
I imagine the problem was caused because the gnuplot binary in question is not built for soft-float.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva