[sage-support] macOS downloads: "py2" variants?

2020-09-02 Thread Brian McGroarty
The macOS downloads for Sage version 9.1 include variants with and without 
"py2" in the name. The installation instructions and the macOS readme in 
the top level directory don't indicate what this is for.

Which version would be appropriate for first time use on a Mojave machine? 
Is py2 there only for people who aren't ready for python 3?

Also, where's the best place to file a bug/suggestion about including an 
explanation on the download page?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/0c4a9971-d257-48d6-9635-c4a9fa4392b8n%40googlegroups.com.


[sage-support] Can sage's palp decompress these polytopes?

2017-02-05 Thread Brian Fitzpatrick
Kreuzer has a list of five-dimensional reflexive polytopes at this link:

http://quark.itp.tuwien.ac.at/~kreuzer/d5/

I want to read these compressed files. Is this possible in sage?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Debian unstable binary install needed libiml and/or libiml-dev to run successfully

2017-02-01 Thread Brian Flaherty
Sorry, I forgot to add machine info.

root@stendahl:~# uname -a
Linux stendahl 4.9.0-1-amd64 #1 SMP Debian 4.9.6-3 (2017-01-28) x86_64 
GNU/Linux

Debian unstable.


On Wednesday, February 1, 2017 at 1:39:15 PM UTC-8, Brian Flaherty wrote:
>
> Hello,
>
> I tried installing sage this morning on my desktop. I first tried from 
> source, but got an error that I haven't had time to try to diagnose yet. I 
> then downloaded
>
>  sage-7.5.1-Debian_GNU_Linux_8-x86_64.tar.bz2
>
> and installed it as root in /opt with a link to sage in /usr/local/bin/.
>
> When I ran sage from the command line as root, it crashed with an error 
> message in ipython2.7. The error was something like "Text file busy". I 
> looked at the error log /root/.sage/ipython-5.0.0/Sage_crash_report.txt, 
> and at the end, it said libiml.so.0 not found.
>
> >
> > ImportError: libiml.so.0: cannot open shared object file: No such file 
> or directory
> >
>
> In Debian aptitiude, I installed libiml0 and libiml-dev. After intalling 
> those, sage ran from the command line as root and did all the patching and 
> sage runs.
>
> Thought I'd let you know.
>
> Brian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Debian unstable binary install needed libiml and/or libiml-dev to run successfully

2017-02-01 Thread Brian Flaherty
Hello,

I tried installing sage this morning on my desktop. I first tried from 
source, but got an error that I haven't had time to try to diagnose yet. I 
then downloaded

 sage-7.5.1-Debian_GNU_Linux_8-x86_64.tar.bz2

and installed it as root in /opt with a link to sage in /usr/local/bin/.

When I ran sage from the command line as root, it crashed with an error 
message in ipython2.7. The error was something like "Text file busy". I 
looked at the error log /root/.sage/ipython-5.0.0/Sage_crash_report.txt, 
and at the end, it said libiml.so.0 not found.

>
> ImportError: libiml.so.0: cannot open shared object file: No such file or 
directory
>

In Debian aptitiude, I installed libiml0 and libiml-dev. After intalling 
those, sage ran from the command line as root and did all the patching and 
sage runs.

Thought I'd let you know.

Brian 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How do I use maxima.fpprec in sage?

2015-08-18 Thread Brian Rich
I have recently picked up sage, and while browsing through a list of 
functions in the completion list, found maxima.fpprec. I assume it is used 
for getting or setting the value of the maxima variable of the same name, 
but I cannot figure out how to use this particular function. Can someone 
tell me how to proceed?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] non parametric curve plot

2015-05-18 Thread Brian Sherson

I believe what you are looking for is “implicit_plot”

~Brian

On 05/18/2015 03:15 PM, Evrim Ulu wrote:

Hello,

Is there a way to plot non-parametric curve of 2-variables f(x,y)=0?

I've seen the documentation always employs rational parametrization or 
uses plot3d.


best,
evrim.
--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
<mailto:sage-support+unsubscr...@googlegroups.com>.
To post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] differentiating large function problem

2014-12-22 Thread Brian Sherson

Dustin, I don’t think you can use LaTeX syntax to define f.

~Brian

On 12/22/2014 11:27 AM, Dustin Tingley wrote:

Hi,
I'm trying to differentiate a pretty nasty function. However, I keep 
running into invalid syntax problems.


a, c, g, k, t, g1, e2, t = var('a,c,g,k,t,g1,e2,t')
f=\frac{(\frac{g k}{(g -1)(1-\frac{1}{2}t (a 
-1)(\frac{e2}{1+e2}))-\frac{1}{2}t (a +1)}-\frac{\frac{g }{2}t (a 
+1)c}{(g-1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2})+\frac{1}{2}t (a 
+1))})(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2}))-k+\frac{1}{2}t (a 
+1)c(\frac{(g -1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2}))-\frac{1}{2}t 
(a +1)}{(g -1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2})+\frac{1}{2}t (a 
+1))})}{(\frac{g k}{(g -1)(1-\frac{1}{2}t(a 
-1)(\frac{e2}{1+e2}))-\frac{1}{2}t(a +1)}-\frac{\frac{g }{2}t (a 
+1)c}{(g -1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2})+\frac{1}{2}t (a 
+1))})^{g1}}+\frac{(\frac{g k}{(g-1)(1-\frac{1}{2}t (a 
-1)(\frac{e2}{1+e2}))-\frac{1}{2}t (a +1)}+\frac{\frac{g }{2}t (a 
+1)c}{(g -1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2})+\frac{1}{2}t (a 
+1))})(1-\frac{1}{2}t(a -1)(\frac{e2}{1+e2}))-k-\frac{1}{2}t (a 
+1)c(\frac{(g -1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2}))-\frac{1}{2}t 
(a +1)}{(g -1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2})+\frac{1}{2}t (a 
+1))})}{(\frac{g k}{(g -1)(1-\frac{1}{2}t (a 
-1)(\frac{e2}{1+e2}))-\frac{1}{2}t (a +1)}+\frac{\frac{g }{2}t (a 
+1)c}{(g -1)(1-\frac{1}{2}t (a -1)(\frac{e2}{1+e2})+\frac{1}{2}t (a 
+1))})^{g1}}

diff(f,c,1)


Everything after the f just came out of what I have coded in latex.

I get this error. Any suggestions? Do I have to spell out all the 
multiplications with a *?
Error in lines 2-2 Traceback (most recent call last): File 
"/projects/20a62372-5900-4b47-b7d2-692b6b9064f9/.sagemathcloud/sage_server.py", 
line 865, in execute exec compile(block+'\n', '', 'single') in 
namespace, locals File "", line 1 f= * BackslashOperator() * 
frac{( * BackslashOperator() * frac{g k}{(g -Integer(1))(Integer(1)- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * 
BackslashOperator() * frac{e2}{Integer(1)+e2}))- * BackslashOperator() 
* frac{Integer(1)}{Integer(2)}t (a +Integer(1))}- * 
BackslashOperator() * frac{ * BackslashOperator() * frac{g 
}{Integer(2)}t (a +Integer(1))c}{(g-Integer(1))(Integer(1)- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * 
BackslashOperator() * frac{e2}{Integer(1)+e2})+ * BackslashOperator() 
* frac{Integer(1)}{Integer(2)}t (a +Integer(1)))})(Integer(1)- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * 
BackslashOperator() * frac{e2}{Integer(1)+e2}))-k+ * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t (a +Integer(1))c( 
* BackslashOperator() * frac{(g -Integer(1))(Integer(1)- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * 
BackslashOperator() * frac{e2}{Integer(1)+e2}))- * BackslashOperator() 
* frac{Integer(1)}{Integer(2)}t (a +Integer(1))}{(g 
-Integer(1))(Integer(1)- * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * BackslashOperator() * 
frac{e2}{Integer(1)+e2})+ * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a +Integer(1)))})}{( * 
BackslashOperator() * frac{g k}{(g -Integer(1))(Integer(1)- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t(a -Integer(1))( * 
BackslashOperator() * frac{e2}{Integer(1)+e2}))- * BackslashOperator() 
* frac{Integer(1)}{Integer(2)}t(a +Integer(1))}- * BackslashOperator() 
* frac{ * BackslashOperator() * frac{g }{Integer(2)}t (a 
+Integer(1))c}{(g -Integer(1))(Integer(1)- * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * BackslashOperator() * 
frac{e2}{Integer(1)+e2})+ * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a +Integer(1)))})**{g1}}+ * 
BackslashOperator() * frac{( * BackslashOperator() * frac{g 
k}{(g-Integer(1))(Integer(1)- * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * BackslashOperator() * 
frac{e2}{Integer(1)+e2}))- * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a +Integer(1))}+ * BackslashOperator() 
* frac{ * BackslashOperator() * frac{g }{Integer(2)}t (a 
+Integer(1))c}{(g -Integer(1))(Integer(1)- * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * BackslashOperator() * 
frac{e2}{Integer(1)+e2})+ * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t (a +Integer(1)))})(Integer(1)- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t(a -Integer(1))( * 
BackslashOperator() * frac{e2}{Integer(1)+e2}))-k- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t (a +Integer(1))c( 
* BackslashOperator() * frac{(g -Integer(1))(Integer(1)- * 
BackslashOperator() * frac{Integer(1)}{Integer(2)}t (a -Integer(1))( * 
BackslashOperator() * frac{e2}{Integer(1)+e2}))- * BackslashOperator() 
* frac{Integer(1)}{Integer(2)}t (a +Integer(1))}{(g 
-Integer(1))(Integer(1)- * BackslashOperator() * 
frac{Integer(1)}{Integer(2)}t

Re: [sage-support] How long a time is compilation Sage?

2014-12-17 Thread Brian Sherson
Actually, I did -j8.
On Dec 17, 2014 12:59 AM, "Jori Mantysalo"  wrote:

> On Tue, 16 Dec 2014, Brian Sherson wrote:
>
>  That sounds about right, Dmitry. It takes my server a few hours, and it
>> is an 8-core, 3.5 GHz processor.
>>
>
> Then you have not set MAKE='make -j10' or so. (Or maybe -j6 to get at
> least two processor free for other things.)
>
> --
> Jori Mäntysalo
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] How long a time is compilation Sage?

2014-12-16 Thread Brian Sherson
That sounds about right, Dmitry. It takes my server a few hours, and it is
an 8-core, 3.5 GHz processor.

~Brian
On Dec 16, 2014 4:04 PM, "Dmitry Nanyshev" 
wrote:

> Hi all. How long time is a compilation? I am download Sage 5.0.1.
> Unzipped. Run make. It's been for 3 hours and it still compiles.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Solving symbolic inequalities does not always yield explicit solutions.

2014-11-13 Thread Brian Sherson

Hello~

I am attempting to write a script in which I would like sage to solve 
some symbolic inequalities *explicitly* for certain variables, but it 
does not produce the expected results.


sage: var("x, y, z")
sage: solve(z>x/y, x)

This returns:

[[0 < y, y*z - x > 0], [y < 0, -y*z + x > 0]]

Instead of:

[[0 < y, x < y*z], [y < 0, x > y*z]]

Any ideas on how to get SAGE to return the latter result? The 
inequalities I wish to solve for are linear in the variable I wish to 
solve for.


~Brian

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Assumptions not acknowledged

2014-09-18 Thread Brian Sherson

Could anyone tell me what I am doing wrong here?


sage: g(x,y) = ((x-y)/sqrt(1-(x-y)^2)/y)
sage: forget()

sage: var("alpha")
sage: assume(alpha>0)
sage: assume(alpha<1)
sage: assume(x>-1+alpha)
sage: *assume(x-alpha-1<0)*

sage: g(x,y).integral(y, alpha, x+1, algorithm="maxima")


And yet I still get the following error:

Traceback (most recent call last):assume(x>-1+alpha)
  File "", line 1, in 

  File "/tmp/tmpFNci6y/___code___.py", line 12, in 

g(x,y).integral(y, alpha, x+_sage_const_1 , algorithm="maxima")
  File "expression.pyx", line 10049, in 
sage.symbolic.expression.Expression.integral (sage/symbolic/expression.cpp:43320)
  File 
"/home/sage/sage-6.2/local/lib/python2.7/site-packages/sage/symbolic/integration/integral.py",
 line 688, in integrate
return integrator(expression, v, a, b)
  File 
"/home/sage/sage-6.2/local/lib/python2.7/site-packages/sage/symbolic/integration/external.py",
 line 21, in maxima_integrator
result = maxima.sr_integral(expression, v, a, b)
  File 
"/home/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py",
 line 745, in sr_integral
raise ValueError("Computation failed since Maxima requested additional constraints; using the 
'assume' command before integral evaluation *may* help (example of legal syntax is 'assume(" + 
s[4:k] +">0)', see `assume?` for more details)\n" + s)
ValueError: Computation failed since Maxima requested additional constraints; 
using the 'assume' command before integral evaluation *may* help (example of legal 
syntax is 'assume(x-alpha-1>0)', see `assume?` for more details)
*Is  x-alpha-1  positive, negative, or zero?*


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Problems with heft vectors in M2

2014-09-05 Thread Brian Fitzpatrick
Thank you. I will move it.

On Friday, September 5, 2014 5:49:17 PM UTC-4, Dima Pasechnik wrote:
>
> On 2014-09-05, Brian Fitzpatrick > 
> wrote: 
> > I hope this is on-topic in this group. 
>
> sorry, but IMHO this belongs in 
> https://groups.google.com/forum/?hl=en#!forum/macaulay2 
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Problems with heft vectors in M2

2014-09-05 Thread Brian Fitzpatrick
I hope this is on-topic in this group.

I am working with the "NormalToricVarieties" package in M2.

Part of my research involves determining when the higher cohomology groups 
of certain twists of the structure sheaf of a toric variety vanish. I have 
a specific example where in computing HH^1(X,OO_X(1,1)) I am confronted 
with the following error:
 
stdio:8:3:(3): error: heft vector required that is positive on the degrees 
of the variables {0, 1, 2, 3, 4, 5, 6}

I know that this group should be trivial but somehow the absence of a heft 
vector is bothering the compiler. I'm not sure whether or not there is a 
way to get M2 to compute this group.

Do you happen to know of any workarounds in this situation? I'd greatly 
appreciate any insight you may have.

The example I am using is as follows:

loadPackage "NormalToricVarieties";
Rho = { 
  {  0 ,  0 ,  0 ,  0 , 1 }
, {  1 ,  0 ,  0 ,  0 , 1 }
, {  0 ,  1 ,  0 ,  0 , 1 }
, {  0 ,  0 ,  1 ,  0 , 1 }
, {  0 ,  0 ,  0 ,  1 , 1 }
, { -1 , -2 , -1 , -1 , 1 }
, { -2 , -1 , -1 , -1 , 1 } 
};
Sigma = {
  { 2 , 3 , 4 , 5 , 6 }
, { 0 , 1 , 2 , 3 , 4 }
, { 0 , 1 , 2 , 3 , 5 }
, { 0 , 1 , 2 , 4 , 5 }
, { 0 , 1 , 3 , 4 , 5 }
, { 0 , 2 , 3 , 4 , 5 } 
};
X = normalToricVariety(Rho,Sigma);
HH^2(X,OO_X(1,1)) -- HH^n for n=2 works fine
HH^1(X,OO_X(1,1)) -- HH^n for n=1 gives an error

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] exponents with units of measurement?

2014-09-03 Thread Brian Sherson

Don’t feel too bad, it took me a while to discover that method. :)

~Brian

On 09/01/2014 08:40 PM, Hal Snyder wrote:

how could I have missed that? Thank you!

On Monday, September 1, 2014 10:35:11 PM UTC-5, shersonb wrote:

Try the .simplify_radical() method.

~Brian

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
<mailto:sage-support+unsubscr...@googlegroups.com>.
To post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] exponents with units of measurement?

2014-09-01 Thread Brian Sherson

Try the .simplify_radical() method.

~Brian

On 09/01/2014 08:31 PM, Hal Snyder wrote:
Is there a way to simplify sqrt(some_unit_of_measurement^2) without 
knowing what's in the expression? Often a chain of computations will 
lead to a result like the following:


7.5 * sqrt(units.length.meter^2)

I would sage to simplify the units and give me

7.50*meter

but haven't found symbolic expression ops to get past this output:

7.50*sqrt(meter^2)


--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
<mailto:sage-support+unsubscr...@googlegroups.com>.
To post to this group, send email to sage-support@googlegroups.com 
<mailto:sage-support@googlegroups.com>.

Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Heartbleed bug

2014-04-13 Thread Brian Sherson
First question: Is SAGE notebook susceptible to the Heartbleed bug when 
run with secure=True?


Secondly, if so, would any connection that attempts to exploit that bug 
necessarily show up in the console?


~Brian

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Standard Sage Compile Flags

2014-03-18 Thread Brian Wissman
Jeroen:  Thank for the suggestion to use the SAGE_INSTALL_GCC=yes option, 
this solved most of the issues and lead me to a complete solution.  The 
updated GCC version allowed sage to compile with correctly passing the 
-mtune and -march flags with the exception of the MPIR package.  It would 
still insist on using the -mtune=K8 and -march=k8 flags.  For example the 
MPIR log shows:

Building MPIR with the C++ interface and (also) static libraries.
Checking what CFLAGS MPIR would use if they were empty...
Settings chosen by MPIR when configuring with CFLAGS unset:
  CC:  gcc -std=gnu99
  CFLAGS:  -m64 -O2 -march=k8 -mtune=k8
Settings added by Sage to build MPIR, taking into account SAGE_DEBUG etc.:
  CFLAGS:   -g
  LDFLAGS: 
  ABI: 64
Settings from the "global" environment:
  CC:  gcc
  CFLAGS:  -march=corei7 -mtune=corei7
  LDFLAGS: 
  ABI: 
  (CPP, CPPFLAGS, CXX and CXXFLAGS are listed below; these don't get 
modified.)
Finally using the following settings:
  CC=gcc
  CFLAGS=-m64 -O2 -march=k8 -mtune=k8  -g -march=corei7 -mtune=corei7
  CPP=
  CPPFLAGS=
  CXX=g++
  CXXFLAGS=-march=corei7 -mtune=corei7
  LDFLAGS= 
  ABI=64

I looked for how the MPIR package configured itself and found its 
config.guess command would not correctly identify the "Ivy-Bridge" Xeon. It 
used the generic build type of x86_64-unknown-linux-gnu, and hence the 
-march=k8 flags.  I made the new environment variable 
MPIR_CONFIGURE="--build=nehalem-unknown-linux-gnu" before I compiled sage, 
which then showed the correct choice in the logs.

Settings chosen by MPIR when configuring with CFLAGS unset:
  CC:  gcc -std=gnu99
  CFLAGS:  -m64 -O2 -march=corei7 -mtune=corei7

In sage the time to compute a=n(pi,10^7) is now 6.7s, rather than 13.5s 
without setting the MPIR_CONFIGURE variable.  I'm curious if this problem 
exists for all core processors after Nehalem or just for the Xeon line.  If 
so, some computations are needlessly running slower than they need to.

Thank you again for your advice!

Brian

On Sunday, March 16, 2014 9:36:03 PM UTC-10, Jeroen Demeyer wrote:
>
> On 2014-03-17 01:03, Brian Wissman wrote: 
> > I've tried globally setting the CFLAGS parameter, but it doesn't seem to 
> make any difference in the compiled program. 
> It should make a difference, but only after recompiling MPIR and MPFR. 
>
> My guess is that either your C compiler doesn't support -march=core2 
> (try recompiling from scratch with SAGE_INSTALL_GCC=yes perhaps), or 
> there is some environment variable set which influences the CFLAGS. 
>
> If you are still stuck, please send us the MPIR log file together with 
> the output from running "env". 
>
> Jeroen. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Standard Sage Compile Flags

2014-03-16 Thread Brian Wissman
Hi Everyone,

I have been trying to compile Sage to run on my new system running Ubuntu Linux 
but have some questions about some of the default (automatically chosen) 
compile flags.  Now, Sage does compile correctly, but performance seems to 
suffer.

What tipped me off to this anomaly is when I compared the time to run 
"a=n(pi,10^7)" on my new Xeon 3.5ghz workstation to the time on my old 
workstation with a Core 2 Duo 3.0ghz.  I expected the Xeon to be considerably 
faster, but it turned out it was 40% slower!  Looking into the compile logs on 
my new workstation, I noticed some programs (like mpfr) were using (safe?) 
compile flags of "-mtune=k8 -march=k8".  On the old workstation it used the 
appropriate "-mtune=core2 -march=core2"  

I've tried globally setting the CFLAGS parameter, but it doesn't seem to make 
any difference in the compiled program.  Moreover, if I copy the compiled 
program (from the Core2 system to the new Xeon workstation) it runs 
considerably faster.  The new workstation is 50% faster than the Core2 system.

Is there any way to more appropriately set the compile flags to optimize the 
code for the Xeon workstation without compiling on the old machine then 
transferring over?

Thank you for your help!

Brian

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Array in Sage

2013-05-20 Thread Brian Sherson
Have you looked into numpy module? It is not specific to Sage, but it
should work. Also, the indexing is a little bit friendlier.

sage: import numpy
sage: C = numpy.array(1, 2], [3, 4]], [[3, 4], [5, 6]]], [[[7, 8], [9,
10]], [[-1, -2], [-3, -4)
sage: C
array( 1,  2],
 [ 3,  4]],

[[ 3,  4],
 [ 5,  6]]],


   [[[ 7,  8],
 [ 9, 10]],

[[-1, -2],
 [-3, -4)
sage: C[0]
array([[[1, 2],
[3, 4]],

   [[3, 4],
[5, 6]]])
sage: C[0,1]
array([[3, 4],
   [5, 6]])
sage: C[0,1,1]
array([5, 6])
sage: C[0,1,1,0]
5



On Sun, May 19, 2013 at 11:49 PM, P Purkayastha  wrote:

> On 05/20/2013 01:52 PM, Santanu Sarkar wrote:
>
>> Is the any way to write four dimensional array in Sage like C
>> int M[10][10][10][10]?  For two dimensional case I use Matrix.
>>
>
> How do you intend to use it? You can simply create a nested list.
>
> sage: C = 1,2], [3]], [[3], [4]]], [[[1,2],[3]],[[3],[4
> sage: C[0][1][1][0]
> 4
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> sage-support+unsubscribe@**googlegroups.com
> .
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group/sage-support?hl=en
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: unable to start Sage notebook after VMware/Windows crash

2010-10-19 Thread Brian
Thanks to Enrico and Dan.

Enrico, I appreciate your response! But that advice isn't going to
work in a commercial environment with locked-in OSes. And - regardless
of the fact that it might be nice if we went Linux! - that's not
likely to change. As to the alpha version - I agree with you in
principle - but that's what was available via sagemath as the "best"
version of sage for Windows (via Downloads path), and I have to get up
and running on my job (which is optical engineering) rather than
spending hours (see OS, above!) trying to recompile from source, with
a virtual machine thrown into the mix...

NONETHELESS, I essentially followed your advice! At least on the
reinstall...

Thankfully, sagemath has posted a more-recent version of Sage for the
Windows/VMWare installation. So I saved all the HTML files I could
(unfortunately, I lost one work file completely. So chalk that one up
on the "cons" list of trying to use sage full-time to do work work, at
least in this environment). Then I de-installed that virtual machine
and started over with the fresh download of sage. I also downloaded
Firefox (which is my default browser at home, but - unfortunately -
not at work) and am running the browser fully in the windows side. I
hope that will protect my notebooks from further crashes...

Now I've cut and pasted cell by cell from the HTML version back into
the Firefox window running sage (loading the HTML file directory
doesn't work because it can't find the Sage server. At least it looks,
though!) and have recovered one worksheet.

So I lost one out of three files (thankfully, the shortest, most-
straightforward on!) and probably about 15 hours of work time. And I
still have to cut-and-paste the second HTML version "back into" Sage
(i.e. back into a Firefox window/tab that can find the Sage server).
But I'm "back up and limping..."

I'm going to try this mode of working (Sage Version 4.5.3, Firefox in
Windows to try to protect from VM crashes...). Hopefully the problems
I've been having won't recur...

Thanks to you both for your time, and your willingness to help!

Regards,

Brian


On Sep 30, 8:56 pm, Enrico  wrote:
> Forgive my impertinence but this sounds like a slightly unstable setup
> to be using. I'd just reinstall if dumping a file into sagenb/storage
> doesn't work, preferably on a Linux partition rather than in VMWare
> and not using an alpha version of Sage.
>
> Enrico

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: "python not found" error after installation (Ubuntu)

2010-09-30 Thread Brian
Hi there,

I'd just like to echo both the advice and the solution!
I've been having continual problems installing Sage on Ubuntu 10.04.
I'll unzip it, the cd to the directory in which I've unzipped it, type
"./sage" and spawn a whole slew of errors (of varying types, mostly
"can't cd to /usr/lib" or some such...).

Finally tweaking on the "Sometimes programs like ark are the
troublemakers" statement, I realized I'd been unzipping using File
Roller.

Tried the recommended "tar --lzma -xf sage-x.y.z-...tar.lzma" and now
it seems to work like a charm!

Thanks!

Brian


On Sep 28, 8:34 am, obrintpas  wrote:
> Thank you very much for your help to both of you!
> A fresh download solved the issue.
> Thanks again!
>
> On Sep 28, 9:48 am, maldun  wrote:
>
> > Hi!
>
> > First: Have you checked, if the files that sage says are missing are
> > really missing.
> > It could also be that something wasn't correct with unpacking.
> > Sometimes programs
> > like ark are the troublemakers.
>
> > second: I'mUbuntuuser myself and personally would recommend to build
> > sage from source.
> > I had trobules with the binaries myself some times. building from
> > source caused never trouble
> > for me.
> > There is a nice HowTo onubuntuforums how to to do 
> > it:http://ubuntuforums.org/showthread.php?t=1382405
>
> > The disadvantage of course is, that this take some time (approximately
> > 3 hours) but then is also ensured
> > that everything fits for your machine. Pros and Cons like always in
> > life =)
>
> > On Sep 28, 6:05 am, obrintpas  wrote:
>
> > > Hi List,
> > > could someone please help a newbie who has problems running sage?
> > > After unpacking the standard 4.5.3 package for 64bitubuntulinux, i
> > > get the following error when trying to run sage from the terminal. I
> > > am running it onUbuntu10.04.1 LTS
> > > Thank you for your help!
>
> > > --
> > > | Sage Version 4.5.3, Release Date: 2010-09-04                       |
> > > | Type notebook() for the GUI, and license() for information.        |
> > > --
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 1:  ELF    : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2:
> > >               : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2:
> > >                   : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2: CE
> > >                   :
> > >                     2b K qX j : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2: 0 : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2: : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2: @
> > >                     : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2:    : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2:  H s   H 5r: not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 2:  8     : not found
> > > /home/nmw/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-
> > > Linux/local/bin/python: 1: Syntax error: word unexpected (expecting
> > > ")")
> > > n...@nmwlaptop:~/Desktop/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-
> > > x86_64-Linux$

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: unable to start Sage notebook after VMware/Windows crash

2010-09-29 Thread Brian
Thanks, Dan.
I'll give that a try. I had figured that was probably the case - but
had no way to efficiently figure out what had gotten chomped on by the
crash, as I'm very far from a Python guru.

Brian

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: unable to start Sage notebook after VMware/Windows crash

2010-09-29 Thread Brian
cont'd.
Oops. my apologies, I have Sage 4.4.alpha0 running on that VMware
player 3.1.0 build-261024...

Brian

On Sep 29, 1:31 pm, Brian  wrote:
> Hi,
>
> I'm using Sage in a commercial environment to perform physics
> simulations of optical systems. As our computing environment is XP,
> I'm running Sage on WinXP in VMware Player 3.1.0 build-261024.
>
> This morning, after suspending my machine, the VMware player froze. I
> had to either power down, or just end the VMware Player. I apologize -
> I can't recall which. It was right before an important meeting, so
> things were rather rushed. (What I did *not* do was end VMware Player
> using the Task Manager).
>
> When I restarted VMware Player/Sage, I was unable to access my Sage
> notebook. If I run the Sage Notebook script, the window closes with
> some error message to fast to read. If I start up Firefox, I can load
> internet files. I can also load an HTML version of the notebook I had
> saved (since I've had Sage clear out the notebook file when the server
> hangss!). However, if I try to evaluate cells, I get a "Searching for
> Sage server" message in a red box at the top of the page.
>
> I am able to open up the notebook - which, on my system, is at /home/
> sage/.sage/sage_notebook.sagenb/home/admin/10/worksheet.html. However,
> it is now blank (it was not this morning - I've taken to checking
> because server crashes have previously over-wrtten my running notebook
> with a blank file: a bug for another day!).
>
> However, Firefox cannot find the Sage server. If I start up Firefox, I
> get a "Service Temporarily Unavailable" message. (The server is
> temporarily unable to service your request due to maintenance downtime
> or capacity problems. Please try again later. Apache/2.2.12 (Ubuntu)
> Server at localhost Port 80)
>
> The usual "Point browser in MS Windows tohttp://xxx.xxx.xxx.xxx";
> message appears.
>
> If I start Sage from the command line, I get the following messages:
>
> 
> Please wait while the Sage Notebook server starts...
> ...
> Traceback (most recent call last):
>   File "/home/sage/sage/local/bin/sage-notebook", line 36, in 
>     notebook(port=8000)
>   File "/home/sage/sage/local/lib/python2.6/site-packages/
> sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/notebook_object.py", line
> 217, in __call__
>     return self.notebook(*args, **kwds)
>   File "/home/sage/sage/local/lib/python2.6/site-packages/
> sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/run_notebook.py", line 174,
> in notebook_twisted
>     nb = notebook.load_notebook(directory)
>   File "/home/sage/sage/local/lib/python2.6/site-packages/
> sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/notebook.py", line 1706, in
> load_notebook
>     nb = Notebook(dir)
>   File "/home/sage/sage/local/lib/python2.6/site-packages/
> sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/notebook.py", line 88, in
> __init__
>     self.__conf = S.load_server_conf()
>   File "/home/sage/sage/local/lib/python2.6/site-packages/
> sagenb-0.7.5.3-py2.6.egg/sagenb/storage/filesystem_storage.py", line
> 183, in load_server_conf
>     return self._basic_to_server_conf(self._load('conf.pickle'))
>   File "/home/sage/sage/local/lib/python2.6/site-packages/
> sagenb-0.7.5.3-py2.6.egg/sagenb/storage/filesystem_storage.py", line
> 134, in _load
>     return cPickle.load(open(self._abspath(filename)))
> EOFError
> 
>
> Can anyone tell me how to get the Sage server running/functional/
> accessible again?
>
> On a related note, can anyone tell me how to "execute" Sage on my
> stored HTML (produced by Firefox "Save As" rather than the notebook's
> "Save" button)?
>
> Any help would be greatly appreciated, as the project lumbers on in
> desperate and immediate need of these optical simulations!
>
> Regards,
>
> Brian King

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] unable to start Sage notebook after VMware/Windows crash

2010-09-29 Thread Brian
Hi,

I'm using Sage in a commercial environment to perform physics
simulations of optical systems. As our computing environment is XP,
I'm running Sage on WinXP in VMware Player 3.1.0 build-261024.

This morning, after suspending my machine, the VMware player froze. I
had to either power down, or just end the VMware Player. I apologize -
I can't recall which. It was right before an important meeting, so
things were rather rushed. (What I did *not* do was end VMware Player
using the Task Manager).

When I restarted VMware Player/Sage, I was unable to access my Sage
notebook. If I run the Sage Notebook script, the window closes with
some error message to fast to read. If I start up Firefox, I can load
internet files. I can also load an HTML version of the notebook I had
saved (since I've had Sage clear out the notebook file when the server
hangss!). However, if I try to evaluate cells, I get a "Searching for
Sage server" message in a red box at the top of the page.

I am able to open up the notebook - which, on my system, is at /home/
sage/.sage/sage_notebook.sagenb/home/admin/10/worksheet.html. However,
it is now blank (it was not this morning - I've taken to checking
because server crashes have previously over-wrtten my running notebook
with a blank file: a bug for another day!).

However, Firefox cannot find the Sage server. If I start up Firefox, I
get a "Service Temporarily Unavailable" message. (The server is
temporarily unable to service your request due to maintenance downtime
or capacity problems. Please try again later. Apache/2.2.12 (Ubuntu)
Server at localhost Port 80)

The usual "Point browser in MS Windows to http://xxx.xxx.xxx.xxx";
message appears.

If I start Sage from the command line, I get the following messages:


Please wait while the Sage Notebook server starts...
...
Traceback (most recent call last):
  File "/home/sage/sage/local/bin/sage-notebook", line 36, in 
notebook(port=8000)
  File "/home/sage/sage/local/lib/python2.6/site-packages/
sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/notebook_object.py", line
217, in __call__
return self.notebook(*args, **kwds)
  File "/home/sage/sage/local/lib/python2.6/site-packages/
sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/run_notebook.py", line 174,
in notebook_twisted
nb = notebook.load_notebook(directory)
  File "/home/sage/sage/local/lib/python2.6/site-packages/
sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/notebook.py", line 1706, in
load_notebook
nb = Notebook(dir)
  File "/home/sage/sage/local/lib/python2.6/site-packages/
sagenb-0.7.5.3-py2.6.egg/sagenb/notebook/notebook.py", line 88, in
__init__
self.__conf = S.load_server_conf()
  File "/home/sage/sage/local/lib/python2.6/site-packages/
sagenb-0.7.5.3-py2.6.egg/sagenb/storage/filesystem_storage.py", line
183, in load_server_conf
return self._basic_to_server_conf(self._load('conf.pickle'))
  File "/home/sage/sage/local/lib/python2.6/site-packages/
sagenb-0.7.5.3-py2.6.egg/sagenb/storage/filesystem_storage.py", line
134, in _load
return cPickle.load(open(self._abspath(filename)))
EOFError


Can anyone tell me how to get the Sage server running/functional/
accessible again?

On a related note, can anyone tell me how to "execute" Sage on my
stored HTML (produced by Firefox "Save As" rather than the notebook's
"Save" button)?

Any help would be greatly appreciated, as the project lumbers on in
desperate and immediate need of these optical simulations!

Regards,

Brian King

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Complex valued functions and parametric_plots

2010-01-30 Thread Brian Lins
I am running into a problem trying to plot a complex valued function
using parametric plots.

I have a function:

z = (1+I*t)^2/(I+t)

Which I try to plot:

parametric_plot((z.real(),z.imag()),(t,0.1,0.9))

...and I get an error:

TypeError: float() argument must be a string or a number

The strange thing is that parametric_plot works fine when z is a
fractional linear transformation or a polynomial.  I am getting this
error on both 4.0.2 and 4.3.1 Any insight into why this is happening
would be greatly appreciated.

-Brian

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: No sans-serif font in notebook latex entries

2009-05-13 Thread Brian Hawkins

I did not know about the %latex command, thanks for the tip.

Looking at the symbol table, I found one that serves my particular
purpose well: \top.  $M^\top$ renders as I'd like for a transpose and
avoids using an unsupported font in jsMath.

Brian

On May 12, 4:55 am, Jason Grout  wrote:
> Rob Beezer wrote:
> > Hi Brian,
>
> > In a notebook cell, I enter and evaluate:
>
> > %latex
> > $M^\mathsf{T}$
>
> > and get back a slanted M and a very crisp, upright superscript T.  So
> > it can be done, but this is accomplished by running a full-blown
> > instance of TeX and creating a PNG graphic as output.  $M^{\sf T}$
> > looks to render identically.
>
> > I get the error you mention when I add $M^\mathsf{T}$ via the TinyMCE
> > editor (shift-click on a blue bar).  I think this gets interpreted by
> > jsMath, so any fonts will come from jsMath.  From here I'm not sure
> > how to proceed, but maybe this will be enough for somebody else to
> > show the way forward.
>
> Searching in the jsmath source shows that \mathrm and \rm are defined,
> but \mathsf and \sf don't seem to be defined.
>
> Davide, does jsmath implement san serif fonts?
>
> Thanks,
>
> Jason
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] No sans-serif font in notebook latex entries

2009-05-11 Thread Brian Hawkins

Hi,

First I'd like to say that I'm new to sage, I like it very much so
far, and I am excited by its potential.  The attention to
documentation is especially nice.

I currently have an issue with sans serif fonts in latex math entered
in the notebook interface.  Specifically I'm trying to get a nice-
looking transpose operator with something like $M^\mathsf{T}$ or
similarly $M^{\sf T}$.  In the notebook display I get the error,
"Unknown control sequence '\sf'."  The \bf (bold) and \rm (Roman)
macros work fine, though.  Is there any way to get \sf working?

I'm on a Mac OS X 10.5.6 with sage 3.4.1.  I followed the instructions
in the FAQ to install TeX .ttf fonts with no joy.

Thanks,
Brian

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jmol problem

2009-04-04 Thread Brian

My jmol plot at sagenb.org is working for me now:
http://www.sagenb.org/home/pub/423/

On Apr 3, 11:14 pm, William Stein  wrote:
> 2009/4/3 Timothy Clemans :
>
>
>
> > I get the same. This historically has been a problem with the public
> > notebook(s).
>
> I 100% disagree.   This has *not* historically been a problem with the
> public notebooks. I have used them millions of times with numerous
> browsers from many places to draw 3d plots using jmol.
>
> I just did the same plot on another public notebook server (on the
> same machine) and it works fine:
>
>    http://demo2.sagenb.org/home/pub/3/
>
> There is a serious problem with the Linux install (or vmware virtual
> machine) that currently hosts sagenb.org, which manifest itself about
> 2 days ago -- for some reason the OS is randomly killing processes.
> This could be the result of some sort of attack, or just some other
> problem; I don't know.   That's probably what is responsible for your
> graph at sagenb.org to not work.  I'm actually very 
> surprisedhttp://sagenb.orgis working at all.
>
> William
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is newton-raphson already in SAGE?

2009-04-04 Thread Brian

Finding the yield of a bond given a price.  You can see a
demonstration here:
http://www.sagenb.org/home/pub/423/

The newton-raphson usage starts after the 3d plot.
Brian

On Apr 4, 1:06 pm, Robert Bradshaw 
wrote:
> On Apr 4, 2009, at 11:24 AM, David Joyner wrote:
>
> > Sort of. Look in the examples/calculus subdirectory.
>
> The algorithm is used all over--e.g. square roots of power series are  
> computed via newton-raphson. I am pretty sure many of the numerical  
> optimization/root finding algorithms use it as well. What are you  
> trying to use it for?
>
>
>
> > On Sat, Apr 4, 2009 at 1:57 PM, Brian  wrote:
>
> >> Is newton-raphson already in SAGE?
>
> >> Thanks, Brian
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] configuring y-axis in plot

2009-04-04 Thread Brian

How can I set things like ymax, ymin, and ystep in my plot?  Also,
sometimes my plots have ticks on the y axis but only 1 and sometimes
ZERO labels.  I'd like to configure that too.

Thanks in advance for the tips,
Brian
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Is newton-raphson already in SAGE?

2009-04-04 Thread Brian

Is newton-raphson already in SAGE?

Thanks, Brian
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] jmol problem

2009-04-03 Thread Brian

When I go to this public worksheet, jmol renders as a black screen:
http://sagenb.org/home/pub/422/

Here is the output of the Java Console.

Java Plug-in 1.6.0_12
Using JRE version 1.6.0_12 Java HotSpot(TM) Client VM
User home directory = E:\Documents and Settings\brian

c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to 

Jmol applet jmolApplet0__1424380939856034__ destroyed
Jmol applet jmolApplet0__1672076516679526__ initializing
AppletRegistry.checkIn(jmolApplet0__1672076516679526__)
applet context: -applet
appletDocumentBase=http://sagenb.org/home/pub/422/
appletCodeBase=http://sagenb.org/java/jmol/
(C) 2008 Jmol Development
Jmol Version 11.6.16  2008-11-24 13:39
java.vendor:Sun Microsystems Inc.
java.version:1.6.0_12
os.name:Windows XP
memory:6.6/7.9
useCommandThread: false
appletId:jmolApplet0__1672076516679526__
urlImage=jar:http://sagenb.org/java/jmol/JmolApplet0.jar!/
jmol75x29x8.gif
FileManager opening http://sagenb.org/java/jmol/appletweb/SageMenu.mnu
defaults = "Jmol"
backgroundColor = "black"
language=en_US
FileManager opening 
http://sagenb.org/home/pub/422/cells/13/sage0-size500.jmol?1238821371
FileManager opening 
http://sagenb.org/home/pub/422/sage0-size500-117612907.jmol.zip
script compiler ERROR: command expected
line 1 command 1 of SCRIPT:
  >>>>  <<<<
script ERROR: script compiler ERROR: command expected
line 1 command 1 of SCRIPT:
  >>>>  <<<<
eval ERROR:
line 2 command 2 of file /home/pub/422/cells/13/sage0-size500.jmol?
1238821371:
 script >> "SCRIPT" <<
line 1 command 1:
 script >> "/home/pub/422/cells/13/sage0-size500.jmol?
1238821371" <<

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: help expressing formula

2009-04-03 Thread Brian

Indeed, thanks William.  I'm not understanding the problem though, as
range works with "ordinary" variables:

x=5
[t for t in range(1,x)]

Anyway, I changed the units function to not use a list comprehension,
and instead use this formula:
http://i.investopedia.com/inv/tutorials/site/advancedbond/yield9.GIF

The new units function:
def units(C, n, F, r):
return C * ((1 - (1 / (1 + r) ^ n)) / r) + F * (1 / (1 + r) ^ n)

And here we have arrived, successful, with the 3d plot expression:

plot3d(price(70,var('n'),1000,var('r')), (n,1,5), (r,0,5))

Hooray sage!  Very cool.

On Apr 3, 8:53 pm, William Stein  wrote:
> On Fri, Apr 3, 2009 at 7:45 PM, Brian  wrote:
>
> > Thank you Timothy.  Here is the correct (I believe) code for that
> > equation.
>
> > def units(C, n, F, r):
> >    return sum([C / (1 + r) ^ t for t in range(1, n+1)]) + F / (1 + r)
> > ^ n
>
> > def price(C, n, F, r):
> >    return 100 * (units(C, n, F, r) / F)
>
> > Here, units expresses the equation I linked to, and price gives the
> > scaled price, 100 being par.
>
> > For example, evaluating the expression below demonstrates the example
> > calculation from this site:
> >http://www.moneychimp.com/articles/finworks/fmbondytm.htm
>
> > units(70,4,1000,.0853)
>
> > That evaluates to ~950 as in the example, therefore giving a price of
> > ~95:
>
> > price(70,4,1000,.0853)
>
> > And sure enough, plotting the price yield curve gives sensible
> > results:
> > plot(price(70,4,1000,var('y')),0,.2)
>
> > Now I would like to make a 3d plot where n and r are free.  The
> > trouble is, when I try it, I get the following error.  Would someone
> > point out my error?
>
> > plot(price(70,var('n'),1000,var('y')))
>
> > TypeError: range() integer start argument expected, got
> > sage.rings.integer.Integer.
>
> The problem is that you're giving the symbolic variable "n" as input
> to the range command (in your units function), but the range command
> takes a pair of integers as input.
>
> William
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: help expressing formula

2009-04-03 Thread Brian

Thank you Timothy.  Here is the correct (I believe) code for that
equation.

def units(C, n, F, r):
return sum([C / (1 + r) ^ t for t in range(1, n+1)]) + F / (1 + r)
^ n

def price(C, n, F, r):
return 100 * (units(C, n, F, r) / F)

Here, units expresses the equation I linked to, and price gives the
scaled price, 100 being par.

For example, evaluating the expression below demonstrates the example
calculation from this site:
http://www.moneychimp.com/articles/finworks/fmbondytm.htm

units(70,4,1000,.0853)

That evaluates to ~950 as in the example, therefore giving a price of
~95:

price(70,4,1000,.0853)

And sure enough, plotting the price yield curve gives sensible
results:
plot(price(70,4,1000,var('y')),0,.2)

Now I would like to make a 3d plot where n and r are free.  The
trouble is, when I try it, I get the following error.  Would someone
point out my error?

plot(price(70,var('n'),1000,var('y')))

TypeError: range() integer start argument expected, got
sage.rings.integer.Integer.

Thanks, Brian

On Apr 3, 7:03 pm, Timothy Clemans  wrote:
> I'm not 100% sure but I think it would look something like
>
> def maturity_formula(C, P, r):
>     return sum([C / (1 + r) ^ t + F / (1 + r) ^ n for t in range(1, n+1)])
>
> On Fri, Apr 3, 2009 at 8:54 PM, Brian  wrote:
>
> > I was hoping to get help with using SAGE to plot this equation:
> >http://www.streetauthority.com/images/education/ytm.gif
>
> > This is the yield to maturity formula, expressing that a bond's price
> > is the sum of the present values of its future cash flows.
>
> > P = price of the bond
> > n = number of periods
> > C = coupon payment
> > r = required rate of return on this investment
> > F = maturity value
> > t = time period when payment is to be received
>
> > All variables are fixed except P and r, so my plot will be the
> > function P(r).
>
> > Once this is working, my next goal is to unfix n and have it vary on
> > the z axis.
>
> > A more basic question that could get me started is, how do I express
> > that summation?
>
> > Thanks, Brian
>
> > (Source:http://www.streetauthority.com/terms/y/yield-to-maturity.asp)
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] help expressing formula

2009-04-03 Thread Brian

I was hoping to get help with using SAGE to plot this equation:
http://www.streetauthority.com/images/education/ytm.gif

This is the yield to maturity formula, expressing that a bond's price
is the sum of the present values of its future cash flows.

P = price of the bond
n = number of periods
C = coupon payment
r = required rate of return on this investment
F = maturity value
t = time period when payment is to be received

All variables are fixed except P and r, so my plot will be the
function P(r).

Once this is working, my next goal is to unfix n and have it vary on
the z axis.

A more basic question that could get me started is, how do I express
that summation?

Thanks, Brian

(Source: http://www.streetauthority.com/terms/y/yield-to-maturity.asp)
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] error publishing worksheet at sagenb.org

2009-04-03 Thread Brian

When I publish a worksheet, I get a busted URL:

Worksheet is publicly viewable at http://:8000/home/pub/421
Published on April 03, 2009 05:19 PM

Brian
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] showing step by step work

2008-08-23 Thread Brian

Just curious, is there any support for, or any plans to support step
by step problem solving?  I'm thinking of this tool:
http://calc101.com/webMathematica/derivatives.jsp

Which shows you that it first used the chain rule, then took the
second derivative, then used the quotient rule, etc.  It might have
useful applications in edu.

Thanks,
Brian

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: symbol number radian degree

2007-05-21 Thread Brian Harris

Fair enough.  A previous discussion led me to believe the goal was for
more transparent rings.  Have you considered supporting something like
the following?

cos(3).toreal()

On May 21, 9:12 pm, David Joyner <[EMAIL PROTECTED]> wrote:
> Brian Harris wrote:
> > How can I get sage to print the numeric value of an expression such
> > as, cos(3)?
>
> sage: cos(3)
> cos(3)
> sage: RR(cos(3))
> -0.989992496600445
>
>
>
> > Also is there a way to switch between 'radian' and 'degree' modes like
> > in some calculators?
>
> Everything is in radians. To compute the cosine of 30 degrees, just
> multiply by pi/180:
>
> sage: RR(cos(pi*30/180))
> 0.866025403784439
>
>


--~--~-~--~~~---~--~~
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] symbol number radian degree

2007-05-21 Thread Brian Harris

How can I get sage to print the numeric value of an expression such
as, cos(3)?

Also is there a way to switch between 'radian' and 'degree' modes like
in some calculators?


--~--~-~--~~~---~--~~
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: feature questions

2007-05-08 Thread Brian & Caitlin Harris

Cool.  As I mentioned earlier I'm doing parametric density estimation.
 A typical example is the following:

var('mu')
var('sigma_squared')
fNormal = exp(-(x-mu)^2 / (2*sigma_squared)) / (sqrt(sigma_squared*2*pi))

We introduce data D={x1,..,xn} and estimate the parameters mu and
sigma_squared from it using the maximum likelihood method.  D is
actually undefined at this point, I just want this to work for any
list of numeric values D.

L = prod(fNormal(D[i], 0, 1) for i in range(0,len(D)))

Optionally, next I'd take the log to make taking the derivative by
hand simpler although it might be unnecessary if using SAGE to do the
derivative.

logL = log(L)

Then I'd compute partial derivatives w.r.t. mu and sigma_squared and
set them both equal to 0 to find the maximum values for both mu and
sigma_squared.  I'm not sure of the syntax for this, so I won't try.

Does this make sense?
Brian

On 5/8/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> On 5/8/07, Brian Harris <[EMAIL PROTECTED]> wrote:
> >
> > Do you have plans to ever support this?
> >
> > sum(x^i for i in range(1,n)).diff(x)
> >
>
> Do you mean working symbolic with formal sums?  If so, yes, we definitely do
> plan to support this.   Please feel free to send a list of example type 
> problems
> that illustrate the functionality you would like to have.
>
>  William
>
> >
> > On May 7, 10:09 am, William Stein <[EMAIL PROTECTED]> wrote:
> > > On Monday 07 May 2007 10:11 am, Brian Harris wrote:
> > >
> > > > Thanks for the scatter plot pointers.  For question 2, imagine
> > > > something like:
> > > > f(x) = 5 *SUM(1 > > > Probably not standardsumnotation, but I hope it's clear.  Now I want
> > > > to use SAGE to compute f'(x).
> > >
> > > This doesn't help you today, but in SAGE-2.5 (which will be much
> > > more aimed at Calculus use), which will be released this week,
> > > you'll be able to do this:
> > >
> > > sage: f = 5*sum(x^i for i in range(1,10)); f
> > > 5*(x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x)
> > > sage: f.derivative()
> > > 5*(9*x^8 + 8*x^7 + 7*x^6 + 6*x^5 + 5*x^4 + 4*x^3 + 3*x^2 + 2*x + 1)
> > >
> > > Actually, the above would also work in sage-2.4, but would
> > > have slightly different output.
> > >
> > > Maybe you could send some more complicated examples along these
> > > lines that you're interested in.  They are useful to us, since
> > > we can add them as examples in the reference manual and/or
> > > tutorial.
> > >
> > > william
> > >
> > >
> > >
> > > > On May 6, 9:04 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote:
> > > > > I'm not completely sure what you mean for your question 2 - can you
> > > > > give an example?
> > >
> > > > > For your first question, if you have a tuple of 2D data called 'data',
> > > > > then in the notebook you can do
> > >
> > > > > show(point(data))
> > >
> > > > > and you get a scatterplot.  In the reference manual under 2D-plotting
> > > > > there is more information on graphics primitives, such as adding
> > > > > colors (http://modular.math.washington.edu/sage/doc/html/ref/module-
> > > > > sage.plot.plot.html).
> > >
> > > > > There is also a list_plot command, so you can do
> > >
> > > > > show(list_plot(data))
> > >
> > > > > to a list of data points; this has a 'plotjoined' option.
> > >
> > > > > Hopefully that helps.  I am not a SAGE guru, so there may be other
> > > > > nice options as well.
> > >
> > > > > -M.Hampton
> > >
> > > > > On May 6, 2:49 pm, Brian <[EMAIL PROTECTED]> wrote:
> > > > > > 1. How do you do scatter plots in SAGE, without using an interface 
> > > > > > to
> > > > > > underlying commercial software like MATLAB?
> > >
> > > > > > 2. Can maxima or another tool compute [partial] derivatives or
> > > > > > integrals containing arithmetic sums or products?
> > >
> > > --
> > > William Stein
> > > Associate Professor of Mathematics
> > > University of Washington
> >
> >
> > >
> >
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://www.williamstein.org
>
> >
>

--~--~-~--~~~---~--~~
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: feature questions

2007-05-08 Thread Brian Harris

Do you have plans to ever support this?

sum(x^i for i in range(1,n)).diff(x)


On May 7, 10:09 am, William Stein <[EMAIL PROTECTED]> wrote:
> On Monday 07 May 2007 10:11 am, Brian Harris wrote:
>
> > Thanks for the scatter plot pointers.  For question 2, imagine
> > something like:
> > f(x) = 5 *SUM(1 > Probably not standardsumnotation, but I hope it's clear.  Now I want
> > to use SAGE to compute f'(x).
>
> This doesn't help you today, but in SAGE-2.5 (which will be much
> more aimed at Calculus use), which will be released this week,
> you'll be able to do this:
>
> sage: f = 5*sum(x^i for i in range(1,10)); f
> 5*(x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x)
> sage: f.derivative()
> 5*(9*x^8 + 8*x^7 + 7*x^6 + 6*x^5 + 5*x^4 + 4*x^3 + 3*x^2 + 2*x + 1)
>
> Actually, the above would also work in sage-2.4, but would
> have slightly different output.
>
> Maybe you could send some more complicated examples along these
> lines that you're interested in.  They are useful to us, since
> we can add them as examples in the reference manual and/or
> tutorial.
>
> william
>
>
>
> > On May 6, 9:04 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote:
> > > I'm not completely sure what you mean for your question 2 - can you
> > > give an example?
>
> > > For your first question, if you have a tuple of 2D data called 'data',
> > > then in the notebook you can do
>
> > > show(point(data))
>
> > > and you get a scatterplot.  In the reference manual under 2D-plotting
> > > there is more information on graphics primitives, such as adding
> > > colors (http://modular.math.washington.edu/sage/doc/html/ref/module-
> > > sage.plot.plot.html).
>
> > > There is also a list_plot command, so you can do
>
> > > show(list_plot(data))
>
> > > to a list of data points; this has a 'plotjoined' option.
>
> > > Hopefully that helps.  I am not a SAGE guru, so there may be other
> > > nice options as well.
>
> > > -M.Hampton
>
> > > On May 6, 2:49 pm, Brian <[EMAIL PROTECTED]> wrote:
> > > > 1. How do you do scatter plots in SAGE, without using an interface to
> > > > underlying commercial software like MATLAB?
>
> > > > 2. Can maxima or another tool compute [partial] derivatives or
> > > > integrals containing arithmetic sums or products?
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington


--~--~-~--~~~---~--~~
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] 2.5 variables

2007-05-08 Thread Brian Harris

I don't understand this behavior:

sage: (x^2).diff()
2*x
sage: (xx^2).diff()
...
: name 'xx' is not defined

Is the idea that the variable names [a-z] have been predefined for
convenience, but all others need to be explicitly defined before being
used?

Congratulations on the release, by the way!


--~--~-~--~~~---~--~~
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: error when loading

2007-05-08 Thread Brian Harris

Quotes didn't change the behavior for that script.  However I get part-
way through the example.sage script before the error:

[EMAIL PROTECTED]:~/Desktop/sage-2.5-linux_32bit-debian-i686-Linux
$ ./sage
--
| SAGE Version 2.5, Release Date: 2007-05-08 |
| Type notebook() for the GUI, and license() for information.|
--

sage: version()
'SAGE Version 2.5, Release Date: 2007-05-08'
sage: load example.sage
This is a simple SAGE example script.
9765625
5 * 401
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
[(0 : 0 : 1)]
37
The following should be true:
True
---
Traceback (most recent call
last)

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/ in ()

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/iplib.py in ipmagic(self, arg_s)
955 else:
956 magic_args = self.var_expand(magic_args,1)
--> 957 return fn(magic_args)
958
959 def ipalias(self,arg_s):

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/Magic.py in magic_run(self,
parameter_s, runner)
   1674 if restore_main:
   1675 sys.modules['__main__'] = restore_main
-> 1676 self.shell.reloadhist()
   1677
   1678 return stats

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/iplib.py in reloadhist(self)
   1255
   1256 if self.has_readline:
-> 1257 self.readline.clear_history()
   1258
self.readline.read_history_file(self.shell.histfile)
   1259

: 'module' object has no attribute
'clear_history'


On May 8, 10:27 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On 5/8/07, Brian Harris <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > This happens when loading any file, ideas on why?
>
> > [EMAIL PROTECTED]:~/Desktop/sage-2.5-linux_32bit-debian-i686-Linux
> > $ ./sage
> > --
> > | SAGE Version 2.5, Release Date: 2007-05-08 |
> > | Type notebook() for the GUI, and license() for information.|
> > --
>
> > sage: load examples/calculus/newton_raphson.sage
> > ---
> > Traceback (most recent call
> > last)
>
> > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/ > console> in ()
>
> > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
> > lib/python2.5/site-packages/IPython/iplib.py in ipmagic(self, arg_s)
> > 955 else:
> > 956 magic_args = self.var_expand(magic_args,1)
> > --> 957 return fn(magic_args)
> > 958
> > 959 def ipalias(self,arg_s):
>
> > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
> > lib/python2.5/site-packages/IPython/Magic.py in magic_run(self,
> > parameter_s, runner)
> >1674 if restore_main:
> >1675 sys.modules['__main__'] = restore_main
> > -> 1676 self.shell.reloadhist()
> >1677
> >1678 return stats
>
> > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
> > lib/python2.5/site-packages/IPython/iplib.py in reloadhist(self)
> >1255
> >1256 if self.has_readline:
> > -> 1257 self.readline.clear_history()
> >1258
> > self.readline.read_history_file(self.shell.histfile)
> >1259
>
> > : 'module' object has no attribute
> > 'clear_history'
>
> Hmm.  I did fix this for sage-2.5 (and you were right -- the break
> involved upgrading ipython).  In my sage-2.5 it works fine:
>
> [EMAIL PROTECTED]:~/sage-bdist$ ./sage
> --
> | SAGE Version 2.5, Release Date: 2007-05-08 |
> | Type notebook() for the GUI, and license() for information.|
> --
>
> sage: load example.sage
> This is a simple SAGE example script.
> 9765625
> 5 * 401
> [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
> [(0 : 0 : 1)]
> 37
> The following should be true:
> True
>
> What happens if you put quotes around the fi

[sage-support] odd ? and ?? behavior

2007-05-08 Thread Brian Harris

Odd behavior here.  All consecutive f? after I write f?? return the
error below.

sage: def f(x):
: x
:
sage: f?
Type:   function
Base Class: 
String Form:
Namespace:  Interactive
File:   /home/brharris/Desktop/sage-2.5-linux_32bit-debian-
i686-Linux/
Definition: f(x)

sage: f??
Error getting source: could not get source code
Type:   function
Base Class: 
String Form:
Namespace:  Interactive
File:   /home/brharris/Desktop/sage-2.5-linux_32bit-debian-
i686-Linux/
Definition: f(x)

sage: f?
---
 Traceback (most recent call
last)

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/sage/misc/interpreter.py in
sage_prefilter(self, block, continuation)
408 block2 = block
409
--> 410 return InteractiveShell._prefilter(self, block2,
continuation)
411
412

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/iplib.py in _prefilter(self, line,
continue_prompt)
   2165 handler = self.esc_handlers.get(iFun[0:1])
   2166 if handler is not None:
-> 2167 return
handler(line,continue_prompt,pre,iFun,theRest)
   2168 # Emacs ipython-mode tags certain input lines
   2169 if line.endswith('# PYTHON-MODE'):

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/iplib.py in handle_help(self,
line, continue_prompt, pre, iFun, theRest)
   2409 if line:
   2410 #print 'line:<%r>' % line  # dbg
-> 2411 self.magic_pinfo(line)
   2412 else:
   2413
page(self.usage,screen_lines=self.rc.screen_length)

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/Magic.py in magic_pinfo(self,
parameter_s, namespaces)
771 else:
772 self._inspect('pinfo', oname,
detail_level=detail_level,
--> 773   namespaces=namespaces)
774
775 def magic_psearch(self, parameter_s=''):

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/Magic.py in _inspect(self, meth,
oname, namespaces, **kw)
705 pmethod(info.obj,oname,formatter)
706 elif meth == 'pinfo':
--> 707 pmethod(info.obj,oname,formatter,info,**kw)
708 else:
709 pmethod(info.obj,oname)

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/OInspect.py in pinfo(self, obj,
oname, formatter, info, detail_level)
410 defln = self.__getdef(obj,oname)
411 if defln:
--> 412 out.write(header('Definition:\t')
+self.format(defln))
413
414 # Docstrings only in detail 0 mode, since source
contains them (we

: cannot concatenate 'str' and 'NoneType'
objects


--~--~-~--~~~---~--~~
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] error when loading

2007-05-08 Thread Brian Harris

This happens when loading any file, ideas on why?

[EMAIL PROTECTED]:~/Desktop/sage-2.5-linux_32bit-debian-i686-Linux
$ ./sage
--
| SAGE Version 2.5, Release Date: 2007-05-08 |
| Type notebook() for the GUI, and license() for information.|
--

sage: load examples/calculus/newton_raphson.sage
---
Traceback (most recent call
last)

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/ in ()

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/iplib.py in ipmagic(self, arg_s)
955 else:
956 magic_args = self.var_expand(magic_args,1)
--> 957 return fn(magic_args)
958
959 def ipalias(self,arg_s):

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/Magic.py in magic_run(self,
parameter_s, runner)
   1674 if restore_main:
   1675 sys.modules['__main__'] = restore_main
-> 1676 self.shell.reloadhist()
   1677
   1678 return stats

/home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/
lib/python2.5/site-packages/IPython/iplib.py in reloadhist(self)
   1255
   1256 if self.has_readline:
-> 1257 self.readline.clear_history()
   1258
self.readline.read_history_file(self.shell.histfile)
   1259

: 'module' object has no attribute
'clear_history'


--~--~-~--~~~---~--~~
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: feature questions

2007-05-07 Thread Brian & Caitlin Harris

I'm running your linux 32bit binaries, "SAGE Version 2.4, Release
Date: 2007-03-25"  on xubuntu kernel 2.6.17-10-generic.

On 5/7/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> On 5/7/07, Brian & Caitlin Harris <[EMAIL PROTECTED]> wrote:
> >
> > I'm stuck again.  Are rings something that will be more transparent in
> > future versions, or must I learn them :)
>
> They will be much more transparent -- you won't have to learn about them.
> Basically what you're trying to do below is not supported in sage-2.4.2,
> except via maxima.  In sage-2.5 it is very well supported.
>
> What operating system are you using?
>
>  -- William
>
> >
> > sage: x = polygen(RR,'x')
> > sage: f = exp(x)
> >
> > : cannot coerce nonconstant polynomial to float
> >
> > Brian
> >
> > On 5/7/07, William Stein <[EMAIL PROTECTED]> wrote:
> > >
> > > On 5/7/07, Brian & Caitlin Harris <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I was just asking about the recommended way to solve some general
> > > > problems.  You've answered my question by saying that maxima will be
> > > > more transparent in the future.
> > > >
> > > > By the way, it's unintuitive that this should give an error in SAGE:
> > > > f =x - 3.3
> > > >
> > > > : unsupported operand parent(s) for '-':
> > > > 'Univariate Polynomial Ring in x over Rational Field' and 'Real Field
> > > > with 53 bits of precision'
> > > >
> > > > What's the workaround?
> > >
> > > (a) wait for sage-2.5 in which you get:
> > >
> > > sage: f = x - 3.3
> > > sage: f
> > > x - 3.30
> > >
> > > (b) Today:
> > >
> > > sage: x = polygen(RR,'x')
> > > sage: f = x - 3.3
> > > sage: f
> > > 1.00*x - 3.30
> > >
> > > >
> > >
> >
> > >
> >
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://www.williamstein.org
>
> >
>

--~--~-~--~~~---~--~~
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: feature questions

2007-05-07 Thread Brian & Caitlin Harris

I'm stuck again.  Are rings something that will be more transparent in
future versions, or must I learn them :)

sage: x = polygen(RR,'x')
sage: f = exp(x)

: cannot coerce nonconstant polynomial to float

Brian

On 5/7/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> On 5/7/07, Brian & Caitlin Harris <[EMAIL PROTECTED]> wrote:
> >
> > I was just asking about the recommended way to solve some general
> > problems.  You've answered my question by saying that maxima will be
> > more transparent in the future.
> >
> > By the way, it's unintuitive that this should give an error in SAGE:
> > f =x - 3.3
> >
> > : unsupported operand parent(s) for '-':
> > 'Univariate Polynomial Ring in x over Rational Field' and 'Real Field
> > with 53 bits of precision'
> >
> > What's the workaround?
>
> (a) wait for sage-2.5 in which you get:
>
> sage: f = x - 3.3
> sage: f
> x - 3.30
>
> (b) Today:
>
> sage: x = polygen(RR,'x')
> sage: f = x - 3.3
> sage: f
> 1.00*x - 3.30
>
> >
>

--~--~-~--~~~---~--~~
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: feature questions

2007-05-07 Thread Brian & Caitlin Harris

I was just asking about the recommended way to solve some general
problems.  You've answered my question by saying that maxima will be
more transparent in the future.

By the way, it's unintuitive that this should give an error in SAGE:
f =x - 3.3

: unsupported operand parent(s) for '-':
'Univariate Polynomial Ring in x over Rational Field' and 'Real Field
with 53 bits of precision'

What's the workaround?

Thanks,
Brian

On 5/7/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> On 5/7/07, Brian Harris <[EMAIL PROTECTED]> wrote:
> > > Nice, I didn't know about .derivative().  For calculus presented in
> > the tutorial (http://modular.math.washington.edu/sage/doc/html/tut/
> > node22.html) you do everything in Maxima calls/functions.  An
> > explanation in the tutorial (and as a google group posting as I have
> > an assignment due tomorrow!) of the options and trade-offs for
> > performing calculus computations would be helpful.
>
> Almost all the explicit calls to maxima in the tutorial will go away
> with sage-2.5.   Everything will  be done via working directly
> in SAGE -- maxima will be used in some cases behind the scenes.
>
> > I'm doing density estimation right now for a statistics/probability
> > class which involves maximizing log-likelihood formulas.  I would be
> > happy to provide material for a short tutorial on how to do this as I
> > learn it myself.  Perhaps first we could show how to estimate the
>
> That would be good.
>
> > single parameter of an exponential density, then showing how to
> > estimate the 2 parameters of a normal density using partial
> > derivatives, and finally show how to estimate the 2 parameters of a
> > logistic density using gradient ascent (we were told that maximizing
> > the system of equations resulting from taking the partial derivatives
> > of the logistic log-likelihood formula is a problem that cannot be
> > solved analytically, so we're doing this iterative estimation
> > method).
> >
> > What do you think, and by the way, do you have a solve() method for
> > finding function maxima?
>
> Maxima itself has a solve command, and in sage-2.5 there will
> be an algebraic solve command.  Again a clear example of what
> you're asking for would be helpful.
>
> > Brian
> >
> > On May 7, 10:09 am, William Stein <[EMAIL PROTECTED]> wrote:
> > > On Monday 07 May 2007 10:11 am, Brian Harris wrote:
> > >
> > > > Thanks for the scatter plot pointers.  For question 2, imagine
> > > > something like:
> > > > f(x) = 5 * SUM(1 > > > Probably not standard sum notation, but I hope it's clear.  Now I want
> > > > to use SAGE to compute f'(x).
> > >
> > > This doesn't help you today, but in SAGE-2.5 (which will be much
> > > more aimed at Calculus use), which will be released this week,
> > > you'll be able to do this:
> > >
> > > sage: f = 5*sum(x^i for i in range(1,10)); f
> > > 5*(x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x)
> > > sage: f.derivative()
> > > 5*(9*x^8 + 8*x^7 + 7*x^6 + 6*x^5 + 5*x^4 + 4*x^3 + 3*x^2 + 2*x + 1)
> > >
> > > Actually, the above would also work in sage-2.4, but would
> > > have slightly different output.
> > >
> > > Maybe you could send some more complicated examples along these
> > > lines that you're interested in.  They are useful to us, since
> > > we can add them as examples in the reference manual and/or
> > > tutorial.
> > >
> > > william
> > >
> > >
> > >
> > > > On May 6, 9:04 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote:
> > > > > I'm not completely sure what you mean for your question 2 - can you
> > > > > give an example?
> > >
> > > > > For your first question, if you have a tuple of 2D data called 'data',
> > > > > then in the notebook you can do
> > >
> > > > > show(point(data))
> > >
> > > > > and you get a scatterplot.  In the reference manual under 2D-plotting
> > > > > there is more information on graphics primitives, such as adding
> > > > > colors (http://modular.math.washington.edu/sage/doc/html/ref/module-
> > > > > sage.plot.plot.html).
> > >
> > > > > There is also a list_plot command, so you can do
> > >
> > > > > show(list_plot(data))
> > >
> > > > > to a list of data points; this has a &#

[sage-support] Re: feature questions

2007-05-07 Thread Brian Harris

Nice, I didn't know about .derivative().  For calculus presented in
the tutorial (http://modular.math.washington.edu/sage/doc/html/tut/
node22.html) you do everything in Maxima calls/functions.  An
explanation in the tutorial (and as a google group posting as I have
an assignment due tomorrow!) of the options and trade-offs for
performing calculus computations would be helpful.

I'm doing density estimation right now for a statistics/probability
class which involves maximizing log-likelihood formulas.  I would be
happy to provide material for a short tutorial on how to do this as I
learn it myself.  Perhaps first we could show how to estimate the
single parameter of an exponential density, then showing how to
estimate the 2 parameters of a normal density using partial
derivatives, and finally show how to estimate the 2 parameters of a
logistic density using gradient ascent (we were told that maximizing
the system of equations resulting from taking the partial derivatives
of the logistic log-likelihood formula is a problem that cannot be
solved analytically, so we're doing this iterative estimation
method).

What do you think, and by the way, do you have a solve() method for
finding function maxima?

Brian

On May 7, 10:09 am, William Stein <[EMAIL PROTECTED]> wrote:
> On Monday 07 May 2007 10:11 am, Brian Harris wrote:
>
> > Thanks for the scatter plot pointers.  For question 2, imagine
> > something like:
> > f(x) = 5 * SUM(1 > Probably not standard sum notation, but I hope it's clear.  Now I want
> > to use SAGE to compute f'(x).
>
> This doesn't help you today, but in SAGE-2.5 (which will be much
> more aimed at Calculus use), which will be released this week,
> you'll be able to do this:
>
> sage: f = 5*sum(x^i for i in range(1,10)); f
> 5*(x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x)
> sage: f.derivative()
> 5*(9*x^8 + 8*x^7 + 7*x^6 + 6*x^5 + 5*x^4 + 4*x^3 + 3*x^2 + 2*x + 1)
>
> Actually, the above would also work in sage-2.4, but would
> have slightly different output.
>
> Maybe you could send some more complicated examples along these
> lines that you're interested in.  They are useful to us, since
> we can add them as examples in the reference manual and/or
> tutorial.
>
> william
>
>
>
> > On May 6, 9:04 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote:
> > > I'm not completely sure what you mean for your question 2 - can you
> > > give an example?
>
> > > For your first question, if you have a tuple of 2D data called 'data',
> > > then in the notebook you can do
>
> > > show(point(data))
>
> > > and you get a scatterplot.  In the reference manual under 2D-plotting
> > > there is more information on graphics primitives, such as adding
> > > colors (http://modular.math.washington.edu/sage/doc/html/ref/module-
> > > sage.plot.plot.html).
>
> > > There is also a list_plot command, so you can do
>
> > > show(list_plot(data))
>
> > > to a list of data points; this has a 'plotjoined' option.
>
> > > Hopefully that helps.  I am not a SAGE guru, so there may be other
> > > nice options as well.
>
> > > -M.Hampton
>
> > > On May 6, 2:49 pm, Brian <[EMAIL PROTECTED]> wrote:
> > > > 1. How do you do scatter plots in SAGE, without using an interface to
> > > > underlying commercial software like MATLAB?
>
> > > > 2. Can maxima or another tool compute [partial] derivatives or
> > > > integrals containing arithmetic sums or products?
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington


--~--~-~--~~~---~--~~
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: feature questions

2007-05-07 Thread Brian Harris

Thanks for the scatter plot pointers.  For question 2, imagine
something like:
f(x) = 5 * SUM(1 wrote:
> I'm not completely sure what you mean for your question 2 - can you
> give an example?
>
> For your first question, if you have a tuple of 2D data called 'data',
> then in the notebook you can do
>
> show(point(data))
>
> and you get a scatterplot.  In the reference manual under 2D-plotting
> there is more information on graphics primitives, such as adding
> colors (http://modular.math.washington.edu/sage/doc/html/ref/module-
> sage.plot.plot.html).
>
> There is also a list_plot command, so you can do
>
> show(list_plot(data))
>
> to a list of data points; this has a 'plotjoined' option.
>
> Hopefully that helps.  I am not a SAGE guru, so there may be other
> nice options as well.
>
> -M.Hampton
>
> On May 6, 2:49 pm, Brian <[EMAIL PROTECTED]> wrote:
>
> > 1. How do you do scatter plots in SAGE, without using an interface to
> > underlying commercial software like MATLAB?
>
> > 2. Can maxima or another tool compute [partial] derivatives or
> > integrals containing arithmetic sums or products?


--~--~-~--~~~---~--~~
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] feature questions

2007-05-06 Thread Brian

1. How do you do scatter plots in SAGE, without using an interface to
underlying commercial software like MATLAB?

2. Can maxima or another tool compute [partial] derivatives or
integrals containing arithmetic sums or products?


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---