On 2012-02-16 11:46-0800 Alan W. Irwin wrote:

> [....]So one possibility to deal with this is simply to replace all math.mod
> in the several examples where that occurs with math.fmod.  However,
> another alternative is to use the lua % operator (which takes the
> remainder relative to minus infinity rather than zero as in the
> math.fmod case).  If we are always dealing with positive values using
> the % operator might be a better alternative than math.fmod.
>
> Anyhow, let me test the math.fmod and % possibilities for all our lua
> examples in the next little while, and I will get back to you.

In the end (revision 12167) I decided to change to the % operator and
the results passed the test_diff_psc test (i.e., were the same as
the corresponding C examples) for my Lua-5.1 platform.

So Atri, please try the test_lua_psc target again with this revision
from svn trunk. I hope you will be able to get a lot further into the
examples or maybe even complete them!

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to