Math Base - Basic Free Mathematic Software for Puppy Linux

Mathematical tools, physics simulators, CAD, CNC, etc.
Message
Author
emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

SageLivePup

#31 Post by emil »

I made a puplet which includes sage. Link to Post in the Puppy Derivative section.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#32 Post by jamesbond »

Emil,

Thank you. This is excellent effort.

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Scilab

#33 Post by emil »

Scilab is a mostly nummerical package which can be used in science and engineering as an alternative to Matlab (and the free Octave). It has a similar, but not compatibel syntax and it is developed in france.

Forum member Q5sys has posted on the SageLive thread and offers a sfs of the package:
got something you might want to test to see if it works with your puplet.

I made it originally for LightHousePup, but it seems to fit right in with what you are doing.
The SciLab suite
I already packaged it as an SFS.
http://lhpup.org/team/Q5sys/scilab-5.2.2.sfs
http://lhpup.org/team/Q5sys/scilab-5.2.2.sfs-md5.txt

Might duplicate the functionatlity you already have, but it also might offer a bit more. I made it a SFS because its 118MB, and figured I could load and unload that whenever I needed.
If it works for you, feel free to bundle it with your setup.
I cannot test at the moment due to limited time and bandwith, but maybe somebody can and send short feedback.

kind regards
emil

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

Re: Math Python Modules

#34 Post by neurino »

emil wrote:About installing
NumPy, SciPy and Sympy are easy to install from source. They use
a python install script
emil I had no problems compiling numpy (also can be done simply by pypi easy_install) but scipy needs lapack and(or) blas.

I see you already compiled lapack but filehosting.org has a very bad policy asking email addresses I don't want to accept, any alternatives?
And since you already did it: isn't lapack machine dependant? Will it work on any computer running puppy?

I made myself a (not shrinked tho) python sfs with python2.6, wxpython2.8, reportlab, numpy, PIL, lxml, matplotlib I use for work but since I encounter errors sometime I don't feel about sharing an imperfect solution.

Could you please make available your packages for example on drop.io like jemimah used to distribute puppeee?

Thank you very much

edit: don't bother, I found this mirror on my forum search: http://dokupuppylinux.co.cc/programs:ma ... :math_apps

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Some packages

#35 Post by emil »

Hi neurino,
Various people disliked the filhosting.org server. Also many links in this thread are not working any more. Thanks to dingo we have dokupuppy
http://puppylover.netsons.org/dokupuppy ... :math_apps
Myself I have moved some packages for download to
http://boxen.math.washington.edu/home/emil

I will gradually try to complete/extend them.
emil

User avatar
prehistoric
Posts: 1744
Joined: Tue 23 Oct 2007, 17:34

problems with Sage, geogebra

#36 Post by prehistoric »

Well, I spoke too soon. I got the version of Puppy 431 with Sage on CD, and booted it. Everything looked good, but when I tried to start a Sage console it crashed immediately. I suspect I need to configure something.

As per your suggestion, I tried www.sagenb.org. After I got an account set up and tried to create a notebook, it told me it failed to set up jsMath, and warned things could get ugly. (They did.) Basically, nothing worked. Sigh.

Lastly, while I have been able to run geogebra on-line, the sfs file at http://boxen.math.washington.edu/home/emil failed to download more than 431 bytes. (Tried two methods of download.) The file contains over 40 MB. Could something be picking up that version number?

Must not be my day for symbolic math.

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

crash

#37 Post by emil »

prehistoric,
how is your memory configuration?
what does the "free" command give?
emil

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#38 Post by neurino »

thanks emil,

in the meanwhile I hand-joined you pets in an unique sfs and added wxPython and setuptools and so, via easy_install, cython, lxml, PIL, reportlab, and matplotlib (and maybe some other I don't remember).

The global sfs is about 93Mb, I did not shrinked anything because, as a developer, I prefer full features despite minor size, just an exception for wxPython demos I keep on an sd card and can be simply tar.gz'd

I will share them if some puppy place to upload suggested.

Only one note: I used puppeee to compile, using its OpenGL for wxpython (should affect only wxGLCanvas) I guess it's full puppy compatible anyway.

User avatar
prehistoric
Posts: 1744
Joined: Tue 23 Oct 2007, 17:34

Re: crash

#39 Post by prehistoric »

emil wrote:prehistoric,
how is your memory configuration?
what does the "free" command give?
emil
Here's the result of free in your SageLive puplet, which is showing 1.2G in the tray as I write.

Code: Select all

# free
              total                used          free           shared      buffers
Mem:      1943316       227464      1715852            0        37120
Swap:     4192956                 0      4192956
Total:      6136272       227464      5908808
# 
The Puppy I normally run (Luci204) also uses those swap partitions. It is, however, a frugal install with only 840 MB of save file shown. Could this result in the error with jsMath and www.sagenb.org? I didn't think the on-line version used much memory.

With so much RAM and swap, I haven't been worrying about space in the save file.

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#40 Post by emil »

Hi prehistoric,
thats lots of memory :). Can't be an issue you are right.

Check error message (sage >> error.log) - look in error.log
Delete sage-flags.txt in the /local/lib directory as maybe suggested.
I will have a closer look on it.

hi neurino,
maybe send a private mail to one of the site admins of Puppy servers how to upload the package. If you put it somewhere on a webhost I could upload it also to my (slow) boxen.math server space, but would be better if it is on an official puppy server.

kind regards
emil

User avatar
prehistoric
Posts: 1744
Joined: Tue 23 Oct 2007, 17:34

#41 Post by prehistoric »

emil wrote:Hi prehistoric,
thats lots of memory :). Can't be an issue you are right.

Check error message (sage >> error.log) - look in error.log
Delete sage-flags.txt in the /local/lib directory as maybe suggested...
As soon as I saw the error log, the problem was solved. This AMD machine does not have SSE3. My lapse was provoked by the way the console crashed, denying me a chance to read the message. Opening my own console solved this problem. (a "doh!" moment)

I still have to explain why www.sagenb.org has trouble with jsMath, (returns status -7) but that is a different problem.

Now, I'm in a position to get into real trouble. :wink:

Thanks,

prehistoric

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

jsmath for sage notebook

#42 Post by emil »

I don't know exactly.

Do you also get this error when you call sagenb.org from inside the
SageLive ? I included the optional jsmath font Tex packages for optimised output. For me it works perfectly from within SageLive and from within the German puppy-431-de (from scratch, without installing anything special).

It might help to download one of the jsmath-fonts (Texfonts) from
http://www.math.union.edu/~dpvc/jsMath/ ... fonts.html (Maybe go for Texfont15)

and then copy it to a place where they are found
in Puppy /root/.fonts
in Ubuntu /home/foo/.fonts (for user foo)

This Latex Fonts should get detected by your browser and used.

Good Luck
emil

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

geogebra

#43 Post by emil »

2 remarks
geogebra download should work now
and
you have to unzip and keep Subdirectory when installing jsmathfonts, i.e.
it should look like /root/.fonts/TexFont15/cm10.ttf (dont know the exact name of that subdir)

User avatar
prehistoric
Posts: 1744
Joined: Tue 23 Oct 2007, 17:34

works like a charm

#44 Post by prehistoric »

Thanks emil!

I'm spoiled by operating in American English on a U.S. keyboard. My forays into software developed elsewhere have been limited. I read German with a dictionary in one hand.

Part of my trouble came from working in development versions of Puppy where fonts have been ruthlessly culled to save space. The other came from not thinking you might be operating with special fonts other than English plus mathematical symbols.

For portable software, fonts are admittedly a real pain. A small number of built-in fonts for common language groups might be reasonable for SageLive, if space is available. If space is at a premium, it should be possible to break out some seldom-used components as special pets or sfs files, even if these only work with Sage.

I've removed that flags file from the installed version of SageLive-431, but when I went looking for something to edit it out of the iso image, I found I needed to know more about Sage installation -- the story of my life. (I'd like to make a CD that will run on most common hardware without change. I'll put it on the list of projects for my next incarnation.)

Regards,

prehistoric

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

fix

#45 Post by emil »

Good luck, hope it works now for you as expected.
I saw the "bug" about the sage-flags.txt is also contained in the html documentation

emil

aarf

#46 Post by aarf »

finally got organised enough to test this:
lupu500 booted on external HD (sdb1) with /mnt/home/sage-4.3.1.sfs loaded by inclusion in Boot Manager (although didnt notice it being loaded in the boot dialog)
(also with openshot pets already installed which includes python. pupsave is 256 MB free space around 100MB)

Code: Select all

# sage
----------------------------------------------------------------------
| Sage Version 4.3, Release Date: 2009-12-24                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

**********************************************************************
WARNING!  This Sage install was built on a machine that supports
instructions that are not available on this computer.  Sage will
likely fail with ILLEGAL INSTRUCTION errors! The following processor
flags were on the build machine but are not on this computer:

pni ssse3 

Email http://groups.google.com/group/sage-support for help.
To remove this warning and make Sage start, just delete
     /sage-x.y.z-i686-Linux/local/lib/sage-flags.txt
**********************************************************************
# 
(renamed to ssage-flags.txt)
# sage
----------------------------------------------------------------------
| Sage Version 4.3, Release Date: 2009-12-24                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
The Sage install tree may have moved.
Regenerating Python.pyo and .pyc files that hardcode the install PATH
(please wait at most a few minutes)...
Do not interrupt this.
Setting permissions of DOT_SAGE directory so only you can read and write it.
/sage-x.y.z-i686-Linux/local/bin/sage-sage: line 206: 10019 Illegal instruction     sage-ipython "$@" -i
# 
# sage
----------------------------------------------------------------------
| Sage Version 4.3, Release Date: 2009-12-24                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
/sage-x.y.z-i686-Linux/local/bin/sage-sage: line 206: 11291 Illegal instruction     sage-ipython "$@" -i
# 
Attachments
sageerror.jpg
(22.74 KiB) Downloaded 2640 times

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

ssse3

#47 Post by emil »

Hi aarf,

Code: Select all

...
To remove this warning and make Sage start, just delete 
     /sage-x.y.z-i686-Linux/local/lib/sage-flags.txt
...
try just to delete this file as suggested and see if it works.

If Sage starts, try

Code: Select all

random_matrix(ZZ,300).det()
, which will test the ATLAS package.

you can also do a "sage -testall" (or similar syntax, don't know by heart) but this will take hours to complete.

Emil

PS: I haven't tested my earlier sage sfs package in Lupu - I didn't think it is possible. Do they run there (at least on machines wich support ssse3)?


User avatar
Temon
Posts: 5
Joined: Thu 18 Mar 2010, 10:23
Location: Gijón - Spain

GUI for Octave

#49 Post by Temon »

Hi!
I know that there are some tutorials to install QtOctave, but I'm too clumsy to achieve it. I cannot even install 'cmake', which is said to be needed. Is there another GUI for Octave that can be easier installed on Puppy?
I'm using Octave command line now, but I got used to the GUI at Ubuntu (home PC) which I cannot install at work.

Thank you and sorry for my English.

User avatar
Temon
Posts: 5
Joined: Thu 18 Mar 2010, 10:23
Location: Gijón - Spain

#50 Post by Temon »

:oops:

As usual, I solve it right after asking for help!

I used "tgz2pet" with a QtOctavexxx.tar.gz file and everything is fine now.

Sorry and thanks, anyway!

Post Reply