[sage-support] Re: sage-2.8.8

2007-10-24 Thread Justin C. Walker


On Oct 22, 2007, at 21:56 , William Stein wrote:


 Can I build sage with something like '-j 4'?  It's a shame to see  
 all
 those cores sitting idle :-}


 It should work, the packages that fail to build properly with j1 (I
 believe only Singular is affected) reset that flag. Give it a try and
 report back any issues you encounter ;)

 You have to do this:

  export MAKE=make -j4
  make

 to have any impact.  Then packages that have been fully
 tested to support parallel build
 will do so.  Python is another example of a package that doesn't
 build correctly in parallel, but many packages do.

 I always build like the above on sage.math or my mac pro.

To complete this discussion:

On my 2x3.0GHz Quad Xeon Mac, I got the following:

Without the above, the build took ~71 minutes.

With the above, both for -j6 and -j4, the build took ~54 minutes.

This setting had no effect on make test :-}.

Justin

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income

The path of least resistance:
it's not just for electricity any more.





--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: sage-2.8.8

2007-10-24 Thread Justin C. Walker

Picking up this thread:

On Oct 22, 2007, at 21:29 , mabshoff wrote:
 On Oct 23, 6:19 am, Justin C. Walker [EMAIL PROTECTED] wrote:

 However, I have to rerun the build from scratch: it seems to depend
 on /usr/local/lib: maxima won't run with that name change.  I
 neglected to note which library in /usr/local/lib was referenced
 before I blew away the window where I tested that: a lot of tests
 were failing because of maxima problems.


 Hmm, I wonder if this is worth fixing.

I redid this, starting with a clean slate, and '/usr/local/include'  
and '/usr/local/lib' in place.
The build broke at the cddlib step; I continued after renaming the  
'lib' and 'include' directories in '/usr/local', and the build  
completed w/o apparent issue.

However, there's a problem with maxima:

$ maxima
dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
   Referenced from: /tmp/sage-2.8.8.1/local/lib/maxima/5.13.0/binary- 
clisp/lisp.run
   Reason: image not found
Trace/BPT trap

Maxima was built with /usr/local/lib accessible, and picked up a  
reference to libintl in /usr/local.  If I build w/o these directories  
in place, maxima does not find the library, and goes on without it.

There are two libraries that get accessed by items built with /usr/ 
local accessible: libintl and libgdbm.  I think the former shows up  
because 'configure' is looking for it; in the latter case, it's in  
the python build, but I'm not sure why.

I have a lot of stuff in /usr/local, and the build appears to be  
latching on to known packages there, when perhaps it shouldn't be.

Thoughts on this?

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---




--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Mathematical Expression to latex-code-conversion

2007-10-24 Thread marko

Hello,

I am quite new to SAGE but I think I've found a problem with the
latex(math-expression) command. I've tried with version 2.8.6, 2.8.7
and 2.8.8.1:

The problem seems to be the abs() command. Take any function like
f(x)=2*abs(x) with a changing sign. Entering now latex(f) shows me as
the result:
x \ {\mapsto}\ {2 \cdot \abs \left( x \right)}

Compiling this with LaTeX I cannot see the mathematical sign for abs
( preferred \left| (...) \right| ), but simple brackets. Furthermore
the LaTeX compilers tells me of errors: !undefined control sentence
In fact, \abs is no known latex command to me. Deleting \abs removes
the latex compiler error, of course, but thats not the correct latex
code for my expression for f(x).

The following packages have been included for compiling in latex:
\usepackage{ngerman}
\usepackage{color, framed}
\usepackage{graphicx}
\usepackage{amsmath, amsthm, amssymb}
\usepackage[automark]{scrpage2}

I don't know if I've done something wrong or if this is a bug or if
its even supposed to be that way. So I'ld like to ask you: what can I
do?

How can I get the right result as latex code, if its neccessary to use
absolut values of functions or parts of functions?

Thanks for your help,

marko


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Mathematical Expression to latex-code-conversion

2007-10-24 Thread mabshoff



On Oct 24, 7:15 pm, marko [EMAIL PROTECTED] wrote:
 Hello,

 I am quite new to SAGE but I think I've found a problem with the
 latex(math-expression) command. I've tried with version 2.8.6, 2.8.7
 and 2.8.8.1:

 The problem seems to be the abs() command. Take any function like
 f(x)=2*abs(x) with a changing sign. Entering now latex(f) shows me as
 the result:
 x \ {\mapsto}\ {2 \cdot \abs \left( x \right)}

That looks like a bug to me.

ticket opened by mhansen: http://www.sagetrac.org/sage_trac/ticket/982

I opened #983, but mhansen was faster :O


 Compiling this with LaTeX I cannot see the mathematical sign for abs
 ( preferred \left| (...) \right| ), but simple brackets. Furthermore
 the LaTeX compilers tells me of errors: !undefined control sentence
 In fact, \abs is no known latex command to me. Deleting \abs removes
 the latex compiler error, of course, but thats not the correct latex
 code for my expression for f(x).

 The following packages have been included for compiling in latex:
 \usepackage{ngerman}
 \usepackage{color, framed}
 \usepackage{graphicx}
 \usepackage{amsmath, amsthm, amssymb}
 \usepackage[automark]{scrpage2}

 I don't know if I've done something wrong or if this is a bug or if
 its even supposed to be that way. So I'ld like to ask you: what can I
 do?

 How can I get the right result as latex code, if its neccessary to use
 absolut values of functions or parts of functions?

 Thanks for your help,


Well, thank you for reporting the issue.

 marko

Cheers,

Michael


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Mathematical Expression to latex-code-conversion

2007-10-24 Thread Mike Hansen
Hello,

I've fixed this issue and have included the patch below.  It will be
in the next release which should be come out in the next few days.
Here is the behavior after the patch:

sage: g(x) = 2*abs(x)
sage: latex(g)
x \ {\mapsto}\ {2 \cdot \left| x \right|}


--Mike

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---

# HG changeset patch
# User Mike Hansen [EMAIL PROTECTED]
# Date 1193248166 18000
# Node ID ff6836693992d0cdf8513083904cccafb5b9bfa5
# Parent  384cf32899ac4ad7e086bbc3ca53c577d68bd3f1
Fixed #982

diff -r 384cf32899ac -r ff6836693992 sage/calculus/calculus.py
--- a/sage/calculus/calculus.py	Tue Oct 23 21:05:54 2007 -0500
+++ b/sage/calculus/calculus.py	Wed Oct 24 12:49:26 2007 -0500
@@ -3818,6 +3818,11 @@ class SymbolicComposition(SymbolicOperat
 if not self.is_simplified():
 return self.simplify()._latex_()
 ops = self._operands
+
+#Check to see if the function has a _latex_composition method
+if hasattr(ops[0], '_latex_composition'):
+return ops[0]._latex_composition(ops[1])
+
 # certain functions (such as \sqrt) need braces in LaTeX
 if (ops[0]).tex_needs_braces():
 return r%s{ %s } % ( (ops[0])._latex_(), (ops[1])._latex_())
@@ -4033,7 +4038,17 @@ class Function_abs(PrimitiveFunction):
 return abs
 
 def _latex_(self):
-return \\abs
+return \\mathrm{abs}
+
+def _latex_composition(self, x):
+
+sage: f = sage.calculus.calculus.Function_abs()
+sage: latex(f)
+\mathrm{abs}
+sage: latex(abs(x))
+\left| x \right|
+
+return \\left|  + latex(x) +  \\right|
 
 def _approx_(self, x):
 return float(x.__abs__())


[sage-support] solve problems

2007-10-24 Thread Marshall Hampton

I was going to work on the sage wiki's teaching page for linear
algebra, but I got stuck on my first attempt at porting a problem.
The problem was to study the two by two solutions to A^2 = I; in one
of my classes I have students work on that for a day on paper and then
let them use Mathematica another day.  Trying this in sage, the naive
attempt did not work (code demarcated with _):
_
var('a,b,c,d')
m = matrix(2,[a,b,c,d])
i2=identity_matrix(SR,2)
eqlist=[(m*m).list()[i] - i2.list()[i] for i in range(4)]
solve(eqlist,a,b,c,d)
_

returns the error:
_
Traceback (most recent call last):
  File stdin, line 1, in module
  File /Volumes/D/sage-2.8.4.1/sage_notebook/worksheets/mh/7/code/
89.py, line 8, in module
solve(eqlist,a,b,c,d)
  File /Volumes/D/sage-2.8.4.1/data/extcode/sage/, line 1, in
module

  File /Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-packages/sage/
calculus/equations.py, line 674, in solve
raise ValueError, Unable to solve %s for %s%(f, args)
ValueError: Unable to solve [b*c + a^2 - 1, b*d + a*b, c*d + a*c, d^2
+ b*c - 1] for (a, b, c, d)
_

(This is on a 2.8.8.1 system upgraded from 2.8.4.1.) Furthermore, the
output of
_
solve(eqlist,a,b,c)
_
looked strange to me:
[[a == -d, b == (1 - d^2)/r1, c == r1]]


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] An interactive 2D/3D environment for SAGE

2007-10-24 Thread Ted Kosan

For the past couple of months, I have been researching strategies for
extending SAGE with an interactive 2D/3D environment that would be
significantly more advanced than what current mathematics software
provides.  My vision is to be able to place the user into a 3D
environment where they can interact with numerous rich mathematics
objects that are floating around them in 3D space.

So far, the best environment I have come up with is Croquet (
http://opencroquet.org ).

Here is a video which shows the basics of how Croquet works:

http://www.youtube.com/watch?v=oKi-fkyAtg8


And this video shows Croquet used in an amazing interactive session:

http://www.youtube.com/watch?v=2LN5JRl8_sUeurl=http%3A%2F%2Fvideo%2Egreenbush%2Eus%2F%3Frandom%3D


Anyway, what do people think about the idea of using Croquet as an
interactive 2D/3D environment for SAGE?

Ted

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Odd integration

2007-10-24 Thread kcrisman

We're on symbolic integration techniques in my Calc II class right
now, and SAGE rather nicely deals with many (but not all) of the
standard examples, or makes the usual mistakes various other systems
make (e.g., integrate(1/x) gives ln(x), not ln(abs(x))).

However, I'm stumped as to where this one comes from:

integrate(1/sqrt(9+x^2))
x/3

I tried this at home and numerous times on sagenb.org.  Every other
plausible syntax of this integral I tried (-1 power, more parentheses,
switch the summands, etc.) yields the same result.  Yet
surprisingly ;) I get

derivative(x/3)
1/3

Any ideas?


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] SAGE for Cygwin??

2007-10-24 Thread Fausto Arinos Barbuto

Is it possible to compile SAGE on Cygwin?

I tried but I'm getting an error at the very beginning of the make
process...

---Fausto


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: SAGE for Cygwin??

2007-10-24 Thread William Stein

On 10/24/07, Fausto Arinos Barbuto [EMAIL PROTECTED] wrote:
 Is it possible to compile SAGE on Cygwin?

 I tried but I'm getting an error at the very beginning of the make
 process...

Sage definitely cannot be built on Cygwin, and probably never will
be supported on Cygwin.  Sage for windows will always be either
via virtualization (e.g., vmware, virtual pc, andlinux, or something
like that), or via a true native port.  Performance, correctness, and
serious bugs and incompatibility issues with cygwin meant it was just
completely unsuitable a program as complicated as Sage.

Instead you should use the vmware player version of Sage:

http://sagemath.org/SAGEbin/vmware/

Note that I will be posting version 2.8.8 there in about 10 minutes, so you may
want to wait for that before downloading.

 -- William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---