[sage-support] Re: Using scipy special functions

2011-04-11 Thread achrzesz
sage: reset()
sage: import mpmath
sage: plot(lambda x: mpmath.legenp(2,0,x),(x,-1,1))
On 11 Kwi, 00:34, achrzesz achrz...@wp.pl wrote:
 Workaround:
 list_plot([(x,legenp(2,0,x)) for x in
 srange(-1,1,0.1)],plotjoined=True)
 On 10 Kwi, 23:47, ObsessiveMathsFreak obsessivemathsfr...@gmail.com
 wrote:

  The mpmath import seems to work, but I am unable to plot the resulting
  functions. I get an error about too many values to unpack.

  from mpmath import *

  plot(lambda x: legenp(1,0,x),(x,-1,1))

  Traceback (click to the left of this block for traceback)
  ...
  ValueError: too many values to unpack

  On Apr 10, 8:38 pm, achrzesz achrz...@wp.pl wrote:

   Or simply legendre_P, legendre_Q

  Unfortunately, these functions do not support non integer values of n,
  i.e. they don't support generalised legendre functions, which is what
  I need.



-- 
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] sage not showing any output

2011-04-11 Thread trust god
hi,i am very thankful for entire team for developing such useful
software,but it worked very fine some time,
but let me tell my config first
:
windows-xp:32-bit
intel core-duo processor,
3gb ram

i have installed vmware and everything was fine,
when i start vmware it boots ubuntu as it is known,
but after that i am not getting any output in sage output,even not an
error documentation,

i dont know what happened suddenly it was fine ,thank you for the
reply which you will send

-- 
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 Solve Simple Problem

2011-04-11 Thread ancienthart
Now THAT seriously needs to be made clearer in the documentation, including 
some examples.
Also, how to use use_grobner because use_grobner=True don't work.

Joal Heagney

-- 
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 Solve Simple Problem

2011-04-11 Thread achrzesz
I'm not sure but:
sage: solve(x==sqrt(x+1),x,to_poly_solve='use_grobner=True')
[x == 1/2*sqrt(5) + 1/2]

On 11 Kwi, 12:24, ancienthart joalheag...@gmail.com wrote:
 Now THAT seriously needs to be made clearer in the documentation, including
 some examples.
 Also, how to use use_grobner because use_grobner=True don't work.

 Joal Heagney

-- 
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] Curved Edges in Graphs

2011-04-11 Thread ObsessiveMathsFreak
I'm using the graph theory modules and I have a need to draw curved
edges in certain graphs. For example, to draw the complete graph K_4
as a planar graph, it's sometimes useful to draw a curved edge looping
around the main figure than to redraw the whole figure as a triangular
graph.

Currently, the planar layout code does not seem to support curved
edges. In fact, I can't find any documentation on how to implemented
curved edges in graphs at all, though sage seems to have support for
them when drawing multigraphs.

Is there any way to give pos data to edges in graphs as there is for
vertices? Is there any other way to make edges curved in graph plots?

-- 
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 Solve Simple Problem

2011-04-11 Thread achrzesz
to_poly_solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9], [x,y],
use_grobner=true);

works in wxmaxima 0.8.7 but does not in maxima_console()

On 11 Kwi, 13:06, achrzesz achrz...@wp.pl wrote:
 I'm not sure but:
 sage: solve(x==sqrt(x+1),x,to_poly_solve='use_grobner=True')
 [x == 1/2*sqrt(5) + 1/2]

 On 11 Kwi, 12:24, ancienthart joalheag...@gmail.com wrote:

  Now THAT seriously needs to be made clearer in the documentation, including
  some examples.
  Also, how to use use_grobner because use_grobner=True don't work.

  Joal Heagney



-- 
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 Solve Simple Problem

2011-04-11 Thread achrzesz
sage: solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9],
[x,y],to_poly_solve='use_grobner=True')
[[x == -9/68*sqrt(55) + 135/68, y == -15/68*sqrt(5)*sqrt(11) +
123/68], [x == 9/68*sqrt(55) + 135/68, y == 15/68*sqrt(5)*sqrt(11) +
123/68]]

On 11 Kwi, 13:29, achrzesz achrz...@wp.pl wrote:
 to_poly_solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9], [x,y],
 use_grobner=true);

 works in wxmaxima 0.8.7 but does not in maxima_console()

 On 11 Kwi, 13:06, achrzesz achrz...@wp.pl wrote:

  I'm not sure but:
  sage: solve(x==sqrt(x+1),x,to_poly_solve='use_grobner=True')
  [x == 1/2*sqrt(5) + 1/2]

  On 11 Kwi, 12:24, ancienthart joalheag...@gmail.com wrote:

   Now THAT seriously needs to be made clearer in the documentation, 
   including
   some examples.
   Also, how to use use_grobner because use_grobner=True don't work.

   Joal Heagney



-- 
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 Solve Simple Problem

2011-04-11 Thread achrzesz
Oops!
without to_poly_solve='use_grobner=True'
also works

On 11 Kwi, 13:37, achrzesz achrz...@wp.pl wrote:
 sage: solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9],
 [x,y],to_poly_solve='use_grobner=True')
 [[x == -9/68*sqrt(55) + 135/68, y == -15/68*sqrt(5)*sqrt(11) +
 123/68], [x == 9/68*sqrt(55) + 135/68, y == 15/68*sqrt(5)*sqrt(11) +
 123/68]]

 On 11 Kwi, 13:29, achrzesz achrz...@wp.pl wrote:

  to_poly_solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9], [x,y],
  use_grobner=true);

  works in wxmaxima 0.8.7 but does not in maxima_console()

  On 11 Kwi, 13:06, achrzesz achrz...@wp.pl wrote:

   I'm not sure but:
   sage: solve(x==sqrt(x+1),x,to_poly_solve='use_grobner=True')
   [x == 1/2*sqrt(5) + 1/2]

   On 11 Kwi, 12:24, ancienthart joalheag...@gmail.com wrote:

Now THAT seriously needs to be made clearer in the documentation, 
including
some examples.
Also, how to use use_grobner because use_grobner=True don't work.

Joal Heagney



-- 
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 Solve Simple Problem

2011-04-11 Thread achrzesz
So it seems that in Sage use_grobner is not as essential
as in Maxima

sage: maxima('load(to_poly_solver)')
sage: maxima('to_poly_solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9], [x,y])')
%union()
sage: maxima('to_poly_solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9],
[x,y],use_grobner=true)')
%union([x=-(9*sqrt(55)-135)/68,y=-(3*5^(3/2)*sqrt(11)-123)/68],
[x=(9*sqrt(55)+135)/68,y=(3*5^(3/2)*sqrt(11)+123)/68])

 Oops!
 without to_poly_solve='use_grobner=True'
 also works

 On 11 Kwi, 13:37, achrzesz achrz...@wp.pl wrote:

  sage: solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9],
  [x,y],to_poly_solve='use_grobner=True')
  [[x == -9/68*sqrt(55) + 135/68, y == -15/68*sqrt(5)*sqrt(11) +
  123/68], [x == 9/68*sqrt(55) + 135/68, y == 15/68*sqrt(5)*sqrt(11) +
  123/68]]

  On 11 Kwi, 13:29, achrzesz achrz...@wp.pl wrote:

   to_poly_solve([(x-5)^2+y^2-16, (y-3)^2+x^2-9], [x,y],
   use_grobner=true);

   works in wxmaxima 0.8.7 but does not in maxima_console()

   On 11 Kwi, 13:06, achrzesz achrz...@wp.pl wrote:

I'm not sure but:
sage: solve(x==sqrt(x+1),x,to_poly_solve='use_grobner=True')
[x == 1/2*sqrt(5) + 1/2]

On 11 Kwi, 12:24, ancienthart joalheag...@gmail.com wrote:

 Now THAT seriously needs to be made clearer in the documentation, 
 including
 some examples.
 Also, how to use use_grobner because use_grobner=True don't work.

 Joal Heagney



-- 
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] Missing file in scipy installation?

2011-04-11 Thread Michel
I was trying some functions to do root locus plots found on the net.
Doing this I found out that there seems to be something incomplete
about the scipy installation in sage.

from scipy.io.array_import import read_array

---
ImportError   Traceback (most recent call
last)

/home/vdbergh/SRC/ROOTLOCUS/ipython console in module()

/home/vdbergh/sage-4.6.2-linux-64bit-ubuntu_8.04.4_lts-x86_64-Linux/
local/lib/python2.6/site-packages/scipy/io/array_import.py in
module()
 25
 26 # Local imports.
--- 27 import numpyio
 28
 29 default = None

ImportError: No module named numpyio

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


Re: [sage-support] memory error

2011-04-11 Thread Volker Braun
Most likely you don't have enough ram to store 101^5 temporary values. 

-- 
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: Using scipy special functions

2011-04-11 Thread kcrisman

  Or simply legendre_P, legendre_Q

 Unfortunately, these functions do not support non integer values of n,
 i.e. they don't support generalised legendre functions, which is what
 I need.

Are gen_legendre_P and gen_legendre_Q okay?  These are all used from
Maxima, as I recall.

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


[sage-support] Re: Graphics Array and latex legends

2011-04-11 Thread kcrisman


On Apr 8, 5:10 pm, achrzesz achrz...@wp.pl wrote:
 This works for me:
 p1=plot(x^2, (x, -pi, pi),label=f)
 G=graphics_array(((p1,p1),(p1,p1)))
 G.show(figsize=[8,8])


Of course, that's not quite the same thing as a legend.  Looks decent,
though.

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