[sage-support] Re: An importing problem

2009-09-25 Thread William Stein

On Thu, Sep 24, 2009 at 10:51 PM, Kwankyu ekwan...@gmail.com wrote:

 Hi,

 I am modifying the file sage/rings/polynomial/term_order.py. If I add
 the following line

 import sage.matrix.matrix

 Then Sage is compiled but Sage does not run but issue the following
 error:
 ...
 ...
 ...
 /Users/Kwankyu/Sage/local/lib/python2.6/site-packages/sage/matrix/
 matrix_space.py in module()
     32 # Sage matrix imports

     33 import matrix
 --- 34 import matrix_generic_dense
     35 import matrix_generic_sparse
     36

 /Users/Kwankyu/Sage/local/bin/matrix_generic_dense.pyx in
 sage.matrix.matrix_generic_dense (sage/matrix/matrix_generic_dense.c:
 3790)()

 /Users/Kwankyu/Sage/local/bin/matrix_dense.pyx in
 sage.matrix.matrix_dense (sage/matrix/matrix_dense.c:4981)()

 AttributeError: 'module' object has no attribute 'Matrix'
 Error importing ipy_profile_sage - perhaps you should run %upgrade?
 WARNING: Loading of ipy_profile_sage failed.


 What am I doing wrong? Am I doing a circular import?

Yes.

 What I want to do actually is to use the method
 sage.matrix.matrix.is_Matrix().

 This is perhaps a novice's question... Thank you in advance.

It's not a novice question.

Try putting  import sage.matrix.matrix as the line *right* before
you use sage.matrix.matrix.is_Matrix().  I.e., do the import in the
function, not at the module level.

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: An importing problem

2009-09-25 Thread Kwankyu

Hi William,


 Try putting  import sage.matrix.matrix as the line *right* before
 you use sage.matrix.matrix.is_Matrix().  I.e., do the import in the
 function, not at the module level.


That is what I first tried. That results in the same error. I added
the line

import sage.matrix.matrix

in the function __init__. What is strange is that another line I added
at the same place

from sage.rings.integer_ring import IntegerRing

cause no trouble.

I guess the problem is that __init__ function (in the class TermOrder
in sage/rings/polynomial/term_order.py) is executed before the matrix
modules are fully loaded into Sage. Am I right? If so, is there a
workaround?

Kwankyu
--~--~-~--~~~---~--~~
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] Can't plot anything

2009-09-25 Thread Swanhild Bernstein

Hallo,

I'm new to sage and tried to use it. After the installation I started
a worksheet and tried the following

circle((0,0), 1, rgbcolor=(1,1,0))

and got the replay

/Applications/sage/local/bin/sage-sage: line 349:  4119 Abort
trap
python $@

What is wrong?

--~--~-~--~~~---~--~~
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: Can't plot anything

2009-09-25 Thread David Joyner

I guess you are using a mac, but can you tell us what version the OS is and
what version of Sage you are running? Is it a binary, for example?
(This might help others on the list diagnose the problem.)


On Fri, Sep 25, 2009 at 7:18 AM, Swanhild Bernstein
swanhild.bernst...@math.tu-freiberg.de wrote:

 Hallo,

 I'm new to sage and tried to use it. After the installation I started
 a worksheet and tried the following

 circle((0,0), 1, rgbcolor=(1,1,0))

 and got the replay

 /Applications/sage/local/bin/sage-sage: line 349:  4119 Abort
 trap
 python $@

 What is wrong?

 


--~--~-~--~~~---~--~~
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: Can't plot anything

2009-09-25 Thread Susi

Thanks for your answer, yes, I do use a mac
 OS X 10.6 (snow leopard)
and the Sage version is
  sage-4.1.1-OSX10.5-intel-64bit

Sage has no problem with (simple) calculation, I already tried that
and it works fine.

Swanhild


--~--~-~--~~~---~--~~
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: sage vmware image visible from Internet

2009-09-25 Thread ma...@mendelu.cz



On 24 zář, 11:08, William Stein wst...@gmail.com wrote:
 For the record, here is the actual entry I use in /etc/httpd.conf:

 VirtualHost *
   RewriteEngine On
   ServerName sagenb.org
   ProxyPass/http://sagenb2:8000/
   ProxyPassReverse /http://sagenb2:8000/
   DocumentRoot /
 Location /
DefaultType text/html
 /Location
 /VirtualHost

Great, after many hours of using google I solevd the problem. Just for
the record:

My entry in apache2.conf (debian) is

Listen 8001

VirtualHost *:8001
RewriteEngine On
ProxyPass/ http://192.168.86.131/
ProxyPassReverse / http://192.168.86.131/
DocumentRoot /
Location /
DefaultType text/html
/Location
/VirtualHost


I had to do (if I remember correctly)

a2enmod proxy
a2enmod rewrite
a2enmod proxy_http

customize proxy.conf and restart apache

many thanks
Robert





  where host is whatever you use to (locally) connect. Doing this will
  forward all connections to VirtualHost (however it's specified,
  either by port or by dns name or whatever, maybe everything if you're
  not running another webserver on your PC) to the virtual machine.

  Thank you very much.

  Robert

  btw: I have seen that sagenb.org has 8GB RAM. Right?

  The actual machine it's on has 128GB RAM, but it's in a VMWare image
  that sees less than that.

  I wonder, how
  large is the swap. I used for small group (15 students) sage on PC
  with 2GB RAM and it was necessary to have really big swap, since Sage
  was consuming memory fast (has been discussed in January - here on
  sage-edu).

 --
 William Stein
 Associate Professor of Mathematics
 University of Washingtonhttp://wstein.org
--~--~-~--~~~---~--~~
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: Can't plot anything

2009-09-25 Thread Minh Nguyen

Hi Swanhild,

On Fri, Sep 25, 2009 at 9:48 PM, Susi
swanhild.bernst...@math.tu-freiberg.de wrote:

 Thanks for your answer, yes, I do use a mac
 OS X 10.6 (snow leopard)
 and the Sage version is
  sage-4.1.1-OSX10.5-intel-64bit

Snow Leopard is pretty new. The binary you used was built on OS X
10.5, without any patches to support OS X 10.6. Even if you compile
Sage 4.1.1 yourself on OS X 10.6, you would likely run into troubles
and Sage 4.1.1 won't compile successfully on that platform. We are now
updating and upgrading packages so that they work on Snow Leopard. The
upcoming release Sage 4.1.2 should have better support for OS X 10.6
than previously. In the meantime, you could use the public Sage
notebook [1].

[1] http://www.sagenb.org

-- 
Regards
Minh Van Nguyen

--~--~-~--~~~---~--~~
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: Can't plot anything

2009-09-25 Thread Susi

Thanks for the answer, well, I violated a basic rule: Don't use new
systems too early. I will wait for the upgrade and hopefully it won't
take too long. I'm specifically intersted in using Sagetex but it
won't work without Sage.

Swanhild
--~--~-~--~~~---~--~~
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: graphics broken in 10.6?

2009-09-25 Thread kcrisman

This problem was just reported again on sage-support.  To those who
reported it (Gary, Jeannine), did you use the 64-bit binary?  That was
the one which caused the problem on the most recent report.  Does the
32-bit binary work properly for you?  (The error messages above all
say it's looking for files in /Users/was/build/64bit/
sage-4.1.1.alpha1/spkg/build/python-2.6.2.p1/src/libpython2.6.a which
of course will not live on most people's computers, and maybe somehow
William's 64-bit build did something funky.)

- kcrisman

On Sep 17, 11:49 am, Gary gary.fueh...@gmail.com wrote:
 Wow, I can't believe so few have reported this problem. Really I've
 nothing new to add other than solidarity -- I got this same error when
 I tried it two weeks ago.

 One difference in my setup is that I installed Snow Leopard fresh into
 a new partition instead of upgrading an existing Leopard.

 Gary
--~--~-~--~~~---~--~~
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: max and min evaluating symbolic expressions too soon

2009-09-25 Thread Iwan Lappo-Danilewski

This is a really nasty bug.. Symbolic maxima and minima are
mathematical standard tools, they should at least be _callable_ in
standard sage. One can see the problem this way:

p = var(p)
show( plot(max(p,3),(p,0,10)) )
show( plot(min(p,3),(p,0,10)) )

Could someone please post a quickhack to define min_symbolic() other
than

max_symbolic(-a,-b)*(-1)



--~--~-~--~~~---~--~~
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: Evaluating a Jacobian

2009-09-25 Thread Sterling

Now how do I evaluate f itself at those same points. I can't seem to
figure it out.

On Sep 24, 9:47 pm, Jason Grout jason-s...@creativetrax.com wrote:
 Sterling wrote:
  How do I evaluate a Jacobian at certain values? For example, I type:

  x1,x2,x3 = var('x1 x2 x3')

  f1(x1,x2,x3) = 3*x1 - cos(x2*x3) - (1/2)
  f2(x1,x2,x3) = x1^2 - 81*(x2 + 0.1)^2 + sin(x3) + 1.06
  f3(x1,x2,x3) = e^(-x1*x2) + 20*x3 + (10*pi - 3)/3

  f = (f1,f2,f3)

  j = jacobian(f, [x1,x2,x3])

  I thought it would (intuitively) be:

  j(x1=0.1,x2=0.1,x3=-0.1)

  But apparently not. Please advise.

 I think the thing I would do is make your f a symbolic expression by
 actually calling the functions with arguments:

 f = (f1(x1,x2,x3), f2(x1,x2,x3), f3(x1,x2,x3))

 Then things work like you wished.

 Another thing you could do is make the matrix explicitly a symbolic
 expression matrix:

 matrix(SR,j)

 Then your idea works great as well.

 Thanks,

 Jason

 --
 Jason Grout
--~--~-~--~~~---~--~~
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: graphics broken in 10.6?

2009-09-25 Thread William Stein

On Fri, Sep 25, 2009 at 6:49 AM, kcrisman kcris...@gmail.com wrote:

 This problem was just reported again on sage-support.  To those who
 reported it (Gary, Jeannine), did you use the 64-bit binary?  That was
 the one which caused the problem on the most recent report.  Does the
 32-bit binary work properly for you?  (The error messages above all
 say it's looking for files in /Users/was/build/64bit/
 sage-4.1.1.alpha1/spkg/build/python-2.6.2.p1/src/libpython2.6.a which
 of course will not live on most people's computers, and maybe somehow
 William's 64-bit build did something funky.)

I've created a pre-release version of the next version of Sage, which
supports OS X 10.6.  Would you like to try that?  It's here:

http://sage.math.washington.edu/home/wstein/binaries/sage-4.1.2.alpha3-i386-Darwin.dmg

Note, it is a prerelease version, so some of the (nearly 100,000)
automated tests don't pass.

 -- 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: Can't plot anything

2009-09-25 Thread Jason Grout

Susi wrote:
 Thanks for the answer, well, I violated a basic rule: Don't use new
 systems too early. I will wait for the upgrade and hopefully it won't
 take too long. I'm specifically intersted in using Sagetex but it
 won't work without Sage.
 

If I recall correctly, sagetex now can work with remote sage servers. 
So you don't need to run Sage on your local computer.  I think the 
details are in the documentation.

That's how you get sagetex to run on Windows...

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] Re: expand, combine and rewrite with sage.

2009-09-25 Thread Francois Maltey

Hi Burcin,


Many thanks for theses details about sage. I try to understand what you 
prefer, and why.

 The main reason I left this simplification exp(a)^2 to exp(2*a) while 
 fixing #6948 was that MMA does things this way.

All right : MMA is good.

 Another consideration was that before performing any nontrivial operation on 
 symbolic expressions (integration,
 transforms, etc.), we would have to perform some normalization, and this 
 seemed like a normal form as it is.

It's often true, but on the other hand I'm quite sure the main Risch 
algorithm for integration looks at independant algebraic functions and 
transforms exp(2x) and exp(3x) to y^2 and y^3 with y=exp(x) : the 
opposite transform.

This almost canonical transform can also be the first call in sum, 
diffenrentiate, and so. (I'm not sure about integrate).

An other point : I see that sage is very lazy over expressions : (1+1/x) 
/ (2+1/x) remains.
So I don't find very logically consistent to be hurry with exp(a)^2 and 
to be lazy with fractions.

With rational expressions the single functions expand and factor 
transform (a-b)*(a+b) and a^2-b^2,
and sage remains both expressions in their input forms. And I look at 
exp by analogies.

Thanks a lot for your workaround for tests, but I expect an easiest way 
for students.

As a workaround, you can do the following to replace exp(x) with y in the 
example above:

sage: t = exp(2*x)/(exp(3*x)+1)
sage: w = SR.wild()
sage: match_list = t.find(exp(w*x)); match_list
...


The way with hold(exp(a))^5 expressions is less symetric in the mind but 
lets also possible a lot of computations in both way. An 
expand(exp(2*a)) may return hold(exp(a))^2 even if the next eval go back 
to exp(2*a).

 If you think it'll help, I can probably prepare a pynac package that
 disables the automatic simplification of exp powers. I don't have time
 to submit that to Sage (say, as an alternative solution to #6948), but
 it's not hard to do this for experimental purposes.
   
Your offer is superb and I keep it in my mind.
But I'll continue to play with the standard sage, and learn it. Even if 
I feel we should come back to this point later.

3 more practice questions.

1/ I see you have already patched the exp(a)^b problem. I use sage-4.1.1 
and run sage -upgrade, but I don't get any update. Of corse I can wait 
the next sage, but is there a way to get a  new-and-unstable sage ?

2/ expand(x^(a+b)) = x^a * x^b but expand(x^(2*a)) remains x^(2*a). I 
dislike (expand(x^(a+b)).subs(b=a).
The + morphism transform implies the Integer*a and the -a related 
properties.

3/ How in sage can I test if a sub-expression I get with 
expr.operands()[0 or 1 or 2] is a integer, a single variable, a real 
expression in its tree.

Many thanks for your patience with me.

Francois



--~--~-~--~~~---~--~~
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: Evaluating a Jacobian

2009-09-25 Thread Jason Grout

Sterling wrote:
 Now how do I evaluate f itself at those same points. I can't seem to
 figure it out.
 

f is a vector-valued function.  Right now, I think the best way to 
evaluate a vector-valued function is to declare it a vector:

f = vector([f1(x1,x2,x3), f2(x1,x2,x3), f3(x1,x2,x3)])

We are still working on supporting vector-valued functions (or in 
general, functions from R^n to R^m) consistently, so you might run into 
some more inconsistencies.

If you don't want to declare f a vector, then you can do something like:

[g(x1=1,x2=3,x3=4) for g in f]

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] Re: expand, combine and rewrite with sage.

2009-09-25 Thread kcrisman



On Sep 25, 12:35 pm, Francois Maltey fmal...@nerim.fr wrote:
 Hi Burcin,

 Many thanks for theses details about sage. I try to understand what you
 prefer, and why.

  The main reason I left this simplification exp(a)^2 to exp(2*a) while 
  fixing #6948 was that MMA does things this way.

 All right : MMA is good.

  Another consideration was that before performing any nontrivial operation 
  on symbolic expressions (integration,
  transforms, etc.), we would have to perform some normalization, and this 
  seemed like a normal form as it is.

 It's often true, but on the other hand I'm quite sure the main Risch
 algorithm for integration looks at independant algebraic functions and
 transforms exp(2x) and exp(3x) to y^2 and y^3 with y=exp(x) : the
 opposite transform.

 This almost canonical transform can also be the first call in sum,
 diffenrentiate, and so. (I'm not sure about integrate).

 An other point : I see that sage is very lazy over expressions : (1+1/x)
 / (2+1/x) remains.
 So I don't find very logically consistent to be hurry with exp(a)^2 and
 to be lazy with fractions.

 With rational expressions the single functions expand and factor
 transform (a-b)*(a+b) and a^2-b^2,
 and sage remains both expressions in their input forms. And I look at
 exp by analogies.

 Thanks a lot for your workaround for tests, but I expect an easiest way
 for students.

 As a workaround, you can do the following to replace exp(x) with y in the 
 example above:

 sage: t = exp(2*x)/(exp(3*x)+1)
 sage: w = SR.wild()
 sage: match_list = t.find(exp(w*x)); match_list
 ...

 The way with hold(exp(a))^5 expressions is less symetric in the mind but
 lets also possible a lot of computations in both way. An
 expand(exp(2*a)) may return hold(exp(a))^2 even if the next eval go back
 to exp(2*a).

  If you think it'll help, I can probably prepare a pynac package that
  disables the automatic simplification of exp powers. I don't have time
  to submit that to Sage (say, as an alternative solution to #6948), but
  it's not hard to do this for experimental purposes.

 Your offer is superb and I keep it in my mind.
 But I'll continue to play with the standard sage, and learn it. Even if
 I feel we should come back to this point later.

 3 more practice questions.

 1/ I see you have already patched the exp(a)^b problem. I use sage-4.1.1
 and run sage -upgrade, but I don't get any update. Of corse I can wait
 the next sage, but is there a way to get a  new-and-unstable sage ?


See http://groups.google.com/group/sage-devel, and look for things
that talk about releases.  In this case,
http://groups.google.com/group/sage-devel/browse_thread/thread/bdf60570317ba5ad
has information about the development version.  Or you can look at the
group http://groups.google.com/group/sage-release, but it's not as
interesting of a group :)  Also, be careful using sage -upgrade unless
you have already built from source and are in a clean branch (even
then bad things can happen...).

 3/ How in sage can I test if a sub-expression I get with
 expr.operands()[0 or 1 or 2] is a integer, a single variable, a real
 expression in its tree.

Use .pyobject() on the coefficient, I think (I got this from Burcin in
an earlier thread).

- kcrisman
--~--~-~--~~~---~--~~
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: expand, combine and rewrite with sage.

2009-09-25 Thread Minh Nguyen

Hi Francois,

On Sat, Sep 26, 2009 at 2:35 AM, Francois Maltey fmal...@nerim.fr wrote:

SNIP

 1/ I see you have already patched the exp(a)^b problem. I use sage-4.1.1
 and run sage -upgrade, but I don't get any update. Of corse I can wait
 the next sage, but is there a way to get a  new-and-unstable sage ?

See the milestone page [1] for Sage 4.1.2, especially the section that
says Pre-release. If you have an account on the development machine
sage.math, you can get alpha releases under my development home
directory [2]. On sage.math, you can use pre-built binaries for that
particular machine. If you have compiled Sage 4.1.1 from source, you
can upgrade that to the latest alpha/unstable version. The current
alpha release is Sage 4.1.2.alpha2. To upgrade to this unstable
release, first cd to SAGE_ROOT and do the following from the command
line:

$ ./sage -upgrade
http://sage.math.washington.edu/home/mvngu/release/upgrade/sage-4.1.2.alpha2/

[1] http://trac.sagemath.org/sage_trac/milestone/sage-4.1.2

[2] http://sage.math.washington.edu/home/mvngu/release/upgrade/

-- 
Regards
Minh Van Nguyen

--~--~-~--~~~---~--~~
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 with euler's equation.

2009-09-25 Thread Marshall Hampton

You might also find some of the differential equation interact
examples helpful, there are three that relate to Euler's method:

http://wiki.sagemath.org/interact/diffeq

-M. Hampton

On Sep 24, 12:52 pm, Jaasiel Ornelas jrodri1...@gmail.com wrote:
 wow, Iwas trying to figure out how to do exactly what you did, but I
 don't know how to program.

 Thx, now I have something to base myself off.

--~--~-~--~~~---~--~~
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: jsMath working on server

2009-09-25 Thread Mikie

Changed to AsciiMath.  Working great.  I have pretty print all over
the server.  Most of the functions have pretty print.   Works great
with FireFox even from a Linux box.  If you use IE8 or 7 you will need
to install MathPlayer.  Try the text2speech function.  Really nice.
Right click on the math expression.  The major problem was to get
pretty in output.  If anyone would like this setup on their server let
me know.  I have it working with a basic web service.
Thanks for all the help with Sage and Python(Robert and Willian).  I
am using a Twisted server.

Try
http://www.pirsqr.com:2713/

On Sep 23, 10:35 am, Mikie thephantom6...@hotmail.com wrote:
 Finally I have jsMath working on my server.

 Tryhttp://pirsqr.com:1843/

 Really strange works great on IE8, but not quit as good with FireFox.

 The integrator has all the pretty print.  Put int in the type and
 take a look at the pretty print output.

 I would like some feedback on how FireFox does with the pretty print.
 Thanx
--~--~-~--~~~---~--~~
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] derivatives of trig functions

2009-09-25 Thread john_perry_usm

I'm pretty sure this is a bug, but just in case:

sage: diff(sec(x))
D[0](sec)(x)
sage: plot(diff(sec(x)), 0, pi/4)
...traceback omitted...
AttributeError: 'sage.symbolic.expression.Expression' object has no
attribute '_set_extra_kwds'
sage: f = diff(sec(x))
sage: f(x=0)
D[0](sec)(0)

The same thing happens for cot(x) and csc(x).

Using 1/cos(x) works just fine, which baffles me. Is this something
that can be fixed, or is it not broken?

regards
john perry
--~--~-~--~~~---~--~~
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: derivatives of trig functions

2009-09-25 Thread Jason Grout

john_perry_usm wrote:
 I'm pretty sure this is a bug, but just in case:
 
 sage: diff(sec(x))
 D[0](sec)(x)
 sage: plot(diff(sec(x)), 0, pi/4)
 ...traceback omitted...
 AttributeError: 'sage.symbolic.expression.Expression' object has no
 attribute '_set_extra_kwds'
 sage: f = diff(sec(x))
 sage: f(x=0)
 D[0](sec)(0)
 
 The same thing happens for cot(x) and csc(x).
 
 Using 1/cos(x) works just fine, which baffles me. Is this something
 that can be fixed, or is it not broken?
 


I'm pretty sure this is already fixed:

http://trac.sagemath.org/sage_trac/ticket/6956

Jason

-- 
Jason Grout


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