From the above webpage:
"ConvertAll is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either Version 2 of the License, or (at your
option) any later version.
...
ConvertAll requires the following libraries:
* Qt (Version 4.1 or higher - see Trolltech for more information)
* Python (Version 2.3 or higher)
* PyQt (Version 4.0 or higher - see Riverbank for more information)"
Requiring Qt might be a problem. However, I don't see why a units-conversion
package requires a graphics library like Qt. Indeed, the web site says
"Command line options are available to do conversions without the GUI."
>
> It seems that SAGE is also missing a geometry sketchpad component. It
> would be nice to add the GPLed 2D/3D geometry sketchpad program known
> as Geogebra (http://www.geogebra.org).
This has been discussed before. I think it has serious licensing
incompatibility issues and also uses java.
>
> Finally, there is a very good graphing program known as K3DSurf
> (http://k3dsurf.sourceforge.net/) that makes very good 3D/4D/5D graph
> models. Please consider adding this program into SAGE as well.
Were you able to download and compile the source code for this?
The website (or my computer) was very slow for me, so I gae up looking.
If you did so, what OS did you use? Do you know the license for k3dsurf?
Enthought also has a units python module, which might be interesting to
look at. It's not very well documented, though.
>
>> It seems that SAGE is also missing a geometry sketchpad component. It
>> would be nice to add the GPLed 2D/3D geometry sketchpad program known
>> as Geogebra (http://www.geogebra.org).
>
> This has been discussed before. I think it has serious licensing
> incompatibility issues and also uses java.
>
>> Finally, there is a very good graphing program known as K3DSurf
>> (http://k3dsurf.sourceforge.net/) that makes very good 3D/4D/5D graph
>> models. Please consider adding this program into SAGE as well.
>
> Were you able to download and compile the source code for this?
> The website (or my computer) was very slow for me, so I gae up looking.
> If you did so, what OS did you use? Do you know the license for k3dsurf?
k3dsurf is a standard package that can be installed on ubuntu through
the package manager. It is nice, but I think it's a kde thing, which
would be a problem on Mac OSX, Windows, and other platforms we do or
would like to support.
Jason
From the ConvertAll webpage: "Why write another unit converter? There
are plenty of them out there. Well, I couldn't find one that worked
quite the way I wanted.
With ConvertAll, you can combine the units any way you want. If you
want to convert from inches per decade, that's fine. Or from
meter-pounds. Or from cubic nautical miles. The units don't have to
make sense to anyone else."
The justification for ConvertAll would be exactly the justification for us to
*not* use it in Sage, i.e., for Sage unit conversion we would surely want
something that works well in the context of sage itself, e.g., the coercion
model, symbolic calculus, etc. Whatever unit conversion sage eventually
gets, it will have to be done probably as a bunch of new code that might
use something like ConvertAll or enthought's unit code to do some of
the real work behind the scenes. I think something like this will happen
when a student comes to me (or whoever) asking for a several-months
long Sage development project, and unit conversion is something they
find interesting. It's the sort of thing where one would have to:
(a) research exactly what Maple, Mathematica, and Matlab do
(b) come up with a SEP inspired by (a) for Sage, and get it
discussed on sage-devel,
(c) survey the range of existing unit conversion libraries to see
if any are helpful in implementing (b).
(d) implement something.
-- William
Making it easy to include Geogebra based applets in the Sage notebook
would be a worthwhile thing to do, and I'm sure can be done in a way that
avoids licensing problems. The Geogebra project itself is confused
about software licenses -- they write on their download page "You are
free to copy, distribute and transmit GeoGebra for non-commercial
purposes. Please see the GeoGebra license for details." The license
itself on code is according
to the license:"GeoGebra's source code is subject to the GNU General
Public License:" So in fact they cannot restrict its use to
non-commercial
purposes. I'll write to the project for clarification in a moment.
The fact that Geogebra applets use java is certainly not a show stopper
for them having something to do with Sage, since jmol also uses java.
It might make a lot of sense e.g., to have an optional geogebra spkg
that makes it trivial for people to create a bunch of geogebra applets
in the sage notebook...
>>> Finally, there is a very good graphing program known as K3DSurf
>>> (http://k3dsurf.sourceforge.net/) that makes very good 3D/4D/5D graph
>>> models. Please consider adding this program into SAGE as well.
>>
>> Were you able to download and compile the source code for this?
>> The website (or my computer) was very slow for me, so I gae up looking.
>> If you did so, what OS did you use? Do you know the license for k3dsurf?
>
>
> k3dsurf is a standard package that can be installed on ubuntu through
> the package manager. It is nice, but I think it's a kde thing, which
> would be a problem on Mac OSX, Windows, and other platforms we do or
> would like to support.
k3dsurf is a kde gui program, hence completely unsuitable for inclusion
in Sage. Plus sage already has 3d surface plotting.
William
Since you've clearly been thinking of this from a developer's perspective,
and maybe even spending a lot of time writing code, is there any
chance you could just dump some of your design thoughts in an
email here? As a frame of reference, the last time *I* personally
thought a lot about units was when I was taking a physics course
in 1992, so you can imagine that I'm actually pretty clueless about
what people really want. Some questions:
(1) Are the list of all units one uses pretty standard? Is there
a table, say in Wikipedia, with pretty much all of them? Or do
people make up new units in the course of their work or research?
Obviously I know about converting between fahrenheit
and celcius or between Euros and Dollars -- both are "units"
computations for me, where of course the Euro/Dollar FX
rate varies every second, which is kind of amusing.
(2) Are there *any* difficult algorithms that involve units or is this
mostly a notational and representation problem plus some algebra
and simplification?
(3) Does Maxima, Maple, Mathematica, Matlab or Axiom do anything
particularly cool, surprising or clever involving units?
-- William
I've used the Maple units package and it works fairly well for most
of the calculations I've done with it. It's an add-on package but is
still useful enough to handle most things I've thrown at it. The biggest
problem I've had is the appropriation of symbols for use in units when
I've wanted to use them for something else. The best example is
the use of A for amps when I wanted to use A to represent an area.
Cheers,
Tim Lahey
---
Tim Lahey
PhD Candidate, Systems Design Engineering
University of Waterloo
Frink is the standard for unit conversion.
<http://futureboy.homeip.net/frinkdocs>
I cannot find any mention of a license.
It seems to be implemented in Java.
Tim
At http://futureboy.us/frinkdocs/faq.html under the heading "Philosophy"
there is the question "Why isn't this open source?"
It's also useful because some places use units you've never heard of.
Here in Korea, it's very common to use "pyeong" as a unit of area.
The government wants everyone to use square meters, but still everyone
talks about how big their apartments are in terms of pyeong.
To use Carl's syntax, "1 pyeong is 3.3058 meters^2", or "1 pyeong is
35.586 feet^2".
Also, in Japan, they traditionally use tatami as a unit of area: 1
tatami is 1.62 meters^2. (Except for the parts of Japan where it's 1.82
meters^2: http://en.wikipedia.org/wiki/Tatami)
Dan
--
--- Dan Drake <dr...@mathsci.kaist.ac.kr>
----- KAIST Department of Mathematical Sciences
------- http://math.kaist.ac.kr/~drake
Maybe we should reconsider. There isn't even an optional package of
ScientificPython for sage at present? Is it a good project, good code, etc?
What does it do?
I tried downloading the devel version (released a year ago) and:
teragon-2:ScientificPython-2.7.8 was$ sage -python setup.py install
netCDF not found, the netCDF module will not be built!
If netCDF is installed somewhere on this computer,
please set NETCDF_PREFIX to the path where
include/netcdf.h and lib/netcdf.a are located
and re-run the build procedure.
Traceback (most recent call last):
File "setup.py", line 163, in <module>
headers.append(netcdf_h_file)
NameError: name 'netcdf_h_file' is not defined
teragon-2:ScientificPython-2.7.8 was$
Could you post a tarball of a version of ScientificPython with the
property that if I do:
tar zxvf ScientificPython-x.y.z.tar.gz
cd ScientificPython-x.y.z
sage -python setup.py install
then it will work? I want to try it it. Right now,
teragon-2:ScientificPython-2.7.8 was$ sage -python setup.py install
netCDF not found, the netCDF module will not be built!
If netCDF is installed somewhere on this computer,
please set NETCDF_PREFIX to the path where
include/netcdf.h and lib/netcdf.a are located
and re-run the build procedure.
Traceback (most recent call last):
File "setup.py", line 163, in <module>
headers.append(netcdf_h_file)
NameError: name 'netcdf_h_file' is not defined
-- William