[sage-support] Simplify

2008-12-25 Thread H.S.Rai
Can't simplify((-2*sqrt(2)*I - 2)/2) result in -1*sqrt(2)*I - 1 What I found is that it remain unchanged. -- H.S.Rai --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-supp

[sage-support] Floatting point LLL Revisited - Need help

2008-12-25 Thread Santanu
I am Santanu Sarkar,research fellow, from Indian Statistical Institute. I use SAGE in my research. Can you please tell me is there any function in SAGE by which I can reduce a lattice whose entries are floating point? Note that LLL algorithm can not be use in this case and "Floatting point LLL Rev

[sage-support] Re: how do i embed sage in latex using \input files?

2008-12-25 Thread H.S.Rai
On Dec 18, 5:48 pm, Dan Drake wrote: > > I just made up a toy example with multiple files, and it turns out > SageTeX works perfectly fine with \input -- either "\input{foo}" or In main.tex \input{sageFile} will work, if sageFle.tex is of type: \begin{sageblock} var('a,b,c,x') f = a*x^2 + b

[sage-support] Re: Floatting point LLL Revisited - Need help

2008-12-25 Thread Martin Albrecht
On Thursday 25 December 2008, Santanu wrote: > I am Santanu Sarkar,research fellow, from Indian Statistical > Institute. > I use SAGE in my research. Can you please tell me is there any > function in SAGE by which I can reduce a lattice whose entries are > floating point? Note that LLL algorithm >

[sage-support] Re: Simplify

2008-12-25 Thread David Joyner
sage: a = (-2*sqrt(2)*I - 2)/2 sage: a.simpl a.simplify a.simplify_full a.simplify_radical a.simplify_trig a.simplify_exp a.simplify_log a.simplify_rational sage: a.simplify_full() -sqrt(2)*I - 1 On Thu, Dec 25, 2008 at 6:35 AM, H.S.Rai wrote: > > Can't simplify((-

[sage-support] Re: maa-sage wiki page?

2008-12-25 Thread mabshoff
On Dec 24, 6:14 pm, "David Joyner" wrote: > Hi: Hi David, > Does anyone know what happened tohttp://wiki.sagemath.org/maa-sage? > It was non-empty at some point (I announced it on sage-edu and > have a link posted to my USNA webpage. Google even has > a cache snapshot saying it was edited in

[sage-support] Re: how do i embed sage in latex using \input files?

2008-12-25 Thread Harald Schilly
On Dec 25, 2:08 pm, "H.S.Rai" wrote: > \begin{sageblock} >  \input{sageFile} > \end{sageblock} probably, this should be a new command for sagetex and not this construction at all. i.e. \sagefile{filename.sage} and there you go ;) h --~--~-~--~~~---~--~~ To post t

[sage-support] Re: maa-sage wiki page?

2008-12-25 Thread David Joyner
Thanks for putting that back. On Thu, Dec 25, 2008 at 9:12 AM, mabshoff wrote: > > > > On Dec 24, 6:14 pm, "David Joyner" wrote: >> Hi: > > Hi David, > >> Does anyone know what happened tohttp://wiki.sagemath.org/maa-sage? >> It was non-empty at some point (I announced it on sage-edu and >> hav

[sage-support] Re: Floatting point LLL Revisited - Need help

2008-12-25 Thread Lars Fischer
Hello Santanu, I don't know if this helps you, but pari's lll-implementation works with floating point matrices. You can use it from sage like this: sage: M=Matrix(2,2,[1.2,1.4,pi,5.7]) sage: p=pari(M) sage: p.qflll() [-2, -3; 1, 2] sage: L=p.qflll() sage: matrix(2,2, L.python() ) [-2 -3] [ 1 2

[sage-support] linking problems due to inconsistent libraries

2008-12-25 Thread gerhard
Well, I got myself in trouble again: I wanted to consolidate my installation of R to avoid maintaining two versions with two sets of libraries: I took a current version of R (2.8.0 Patched (2008-11-24 r47019) and rpy-1.0.3, patched them to match the patches for 2.6 in the spkg, compiled and insta

[sage-support] Error in abc.n(digits=5)

2008-12-25 Thread H . S . Rai
Following session explain problem (unable to display nurical values when all required values have been defined): sage: abc 3150/(2000*(proofStrain + 5.00e-6*f_y/gamma_ms) + 7) sage: print(proofStrain,f_y,gamma_ms) (0.002, 250, 1.1499) sage: abc.n abc.n