>
> On Sun, Apr 10, 2011 at 7:24 PM, Michel wrote:
> > Hi,
>
> > I wonder if it is possible to do root locus plots in sage?
>
> > The root locus plot of a complex function is basically the zero locus
> > of the imaginary part but it should be equipped
> > with various markings.
Can you give a we
I am clearly missing something very obvious but why does this happily
compile:
%cython
cdef extern from "mpfr.h":
ctypedef void* mpfr_t[1]
cdef int mpfr_init(mpfr_t)
cdef int mpfr_clear(mpfr_t)
def testmpfr(double x):
cdef mpfr_t input
mpfr_init(input)
mpfr_clear(input)
B
On Apr 13, 7:48 pm, ObsessiveMathsFreak
wrote:
> On Apr 12, 8:52 pm, ObsessiveMathsFreak
>
> wrote:
> > On Apr 12, 3:51 am, kcrisman wrote:
>
> > > > > Or simply legendre_P, legendre_Q
>
> > > > Unfortunately, these functions do not support non integer values of n,
> > > > i.e. they don't suppor
Is your function usable?
def mplegp(n,m,x):
V=mpmath.legenp(n,m,x)
return float(V.real)+I*float(V.imag)
sage: time plot(lambda x:mplegp(2.1,0,x).real(),(x,-1,1))
CPU times: user 0.87 s, sys: 0.00 s, total: 0.87 s
Wall time: 0.87 s
On 13 Kwi, 19:48, ObsessiveMathsFreak
wrote:
> On Apr 12, 8:5
On Apr 12, 8:52 pm, ObsessiveMathsFreak
wrote:
> On Apr 12, 3:51 am, kcrisman 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
this should do what you want
./sage -sh
python -i file.py
On Apr 14, 12:10 am, AndyNovo wrote:
> I think he's actually asking about the -i flag. I was just wondering
> the same thing.
>
> sage myfile.sage
>
> runs myfile but doesn't return the interactive prompt.
> I'm guessing the goal is to
I think he's actually asking about the -i flag. I was just wondering
the same thing.
sage myfile.sage
runs myfile but doesn't return the interactive prompt.
I'm guessing the goal is to run a script and have it end with a sage
prompt and some stuff loaded for a session. sage -i looks for
package
if this is possible .. some of my control theory friends will jump into
sage
is it there?
as far as i know there isn't a direct function for it
regards ...
Vasu
On Sun, Apr 10, 2011 at 7:24 PM, Michel wrote:
> Hi,
>
> I wonder if it is possible to do root locus plots in sage?
>
> The r