[sage-support] Re: 3.4 binary for Fedora 10 crashes
On Sat, Apr 11, 2009 at 6:45 PM, ksk...@gmail.com wrote: > > I tried running the Fedora 10 64-bit binary and it warns me about > illegal instructions. When I remove local/lib/sage-flags.txt, the > result crashes on startup with: Oh, I didn't realize that the sage-flags.txt file had warned you. Then there isn't a bug -- this is *precisely* what should happen. The only thing you can do is wait until either (1) we build binaries that work on old hardware, if we ever get access to it (unlikely), or (2) Michael Abshoff changes the ATLAS spkg so it doesn't use sse3 instructions. That's trac 5284: http://trac.sagemath.org/sage_trac/ticket/5284 > > /scratch/sage-3.4-linux-Fedora_release_10_Cambridge-x86_64-Linux/local/ > bin/sage-sage: line 197: 15423 Illegal instruction sage-ipython > "$@" -i > > The outcome of cat /proc/cpuinfo is: > processor : 0 > vendor_id : AuthenticAMD > cpu family : 15 > model : 5 > model name : AMD Opteron(tm) Processor 246 > stepping : 10 > cpu MHz : 1994.307 > cache size : 1024 KB > fpu : yes > fpu_exception : yes > cpuid level : 1 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca > cmov > pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext > 3dnow rep_good nopl > bogomips : 3988.61 > TLB size : 1024 4K pages > clflush size : 64 > cache_alignment : 64 > address sizes : 40 bits physical, 48 bits virtual > power management: ts fid vid ttp > > processor : 1 > vendor_id : AuthenticAMD > cpu family : 15 > model : 5 > model name : AMD Opteron(tm) Processor 246 > stepping : 10 > cpu MHz : 1994.307 > cache size : 1024 KB > fpu : yes > fpu_exception : yes > cpuid level : 1 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca > cmov > pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext > 3dnow rep_good nopl > bogomips : 3988.58 > TLB size : 1024 4K pages > clflush size : 64 > cache_alignment : 64 > address sizes : 40 bits physical, 48 bits virtual > power management: ts fid vid ttp > > I haven't yet gotten to test building from source on this box in its > current configuration, due to some config issues in my toolchain > (that's why I was trying the binary in the first place). > > Kiran > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://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] 3.4 binary for Fedora 10 crashes
I tried running the Fedora 10 64-bit binary and it warns me about illegal instructions. When I remove local/lib/sage-flags.txt, the result crashes on startup with: /scratch/sage-3.4-linux-Fedora_release_10_Cambridge-x86_64-Linux/local/ bin/sage-sage: line 197: 15423 Illegal instruction sage-ipython "$@" -i The outcome of cat /proc/cpuinfo is: processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 5 model name : AMD Opteron(tm) Processor 246 stepping: 10 cpu MHz : 1994.307 cache size : 1024 KB fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow rep_good nopl bogomips: 3988.61 TLB size: 1024 4K pages clflush size: 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp processor : 1 vendor_id : AuthenticAMD cpu family : 15 model : 5 model name : AMD Opteron(tm) Processor 246 stepping: 10 cpu MHz : 1994.307 cache size : 1024 KB fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow rep_good nopl bogomips: 3988.58 TLB size: 1024 4K pages clflush size: 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp I haven't yet gotten to test building from source on this box in its current configuration, due to some config issues in my toolchain (that's why I was trying the binary in the first place). Kiran --~--~-~--~~~---~--~~ 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: matrix is_mutable() puzzle
I finally saw the problem: m[0,0] I apologize for the wasted bandwidth! -gerhard --~--~-~--~~~---~--~~ 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: matrix is_mutable() puzzle
On Sat, Apr 11, 2009 at 5:05 PM, gerhard wrote: > > I just ended up with the following: > -- > def foo( m ): > print 'TYPE ', type(m) > print 'PARENT ', m.parent() > print 'MUTABLE', m.is_mutable() > m[0][0] = m[0][0] / 3. > > foo( matrix(RR,2,1,[1.,2.]) ) > --- > which results in > TYPE > PARENT Full MatrixSpace of 2 by 1 dense matrices over Real Field with > 53 bits of precision > MUTABLE True > Traceback (click to the left for traceback) > ... > ValueError: vector is immutable; please change a copy instead (use > self.copy()) > > Could somebody please enlighten me to what is going on here? > What do I need to do to rescale entries in m? > Use m[0,0] not m[0][0]. 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] matrix is_mutable() puzzle
I just ended up with the following: -- def foo( m ): print 'TYPE ', type(m) print 'PARENT ', m.parent() print 'MUTABLE', m.is_mutable() m[0][0] = m[0][0] / 3. foo( matrix(RR,2,1,[1.,2.]) ) --- which results in TYPE PARENT Full MatrixSpace of 2 by 1 dense matrices over Real Field with 53 bits of precision MUTABLE True Traceback (click to the left for traceback) ... ValueError: vector is immutable; please change a copy instead (use self.copy()) Could somebody please enlighten me to what is going on here? What do I need to do to rescale entries in m? thanks, -gerhard --~--~-~--~~~---~--~~ 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: traceback when calling solve on an equation indexed by a dict, but not when calling on the pasted equation
thanks! my eyes are so trained to mathematica that i didn't even notice i was swapping it there On Apr 11, 12:52 pm, William Stein wrote: > 2009/4/11 Chris Chiasson : > > > > > > > > > does anyone know what could be causing this? (pasted notebook below - > > i would publish this on sagenb.org, but its publishing feature isn't > > working for me right now (keeps giving an invalid url)) > > > ---begin notebook after this line- > > Lift Coefficient > > system:sage > > > {{{id=21| > > var('Cv Vr k g SWL Design') > > assume(Cv>1,Vr>=0,k>0,g>0,SWL>0,Design>0) > > eqns={1:Cv==1+Vr*sqrt(k/(g*SWL)),2:SWL*Cv==Design} > > eqns > > /// > > > {1: Cv == sqrt(k)*Vr/(sqrt(g)*sqrt(SWL)) + 1, 2: Cv*SWL == Design} > > }}} > > > {{{id=34| > > power_eq = lambda eq, n: eq.operator()(eq.lhs()^n, eq.rhs()^n) #from > > mhansen on sage-devel > > subs_eq = lambda eq, *args: eq.operator()(eq.lhs().subs_expr > > (*args),eq.rhs().subs_expr(*args)) > > /// > > }}} > > > {{{id=38| > > var('alpha') > > assume(alpha>0) > > eqns[3]=alpha==k*Vr^2/g/Design > > /// > > }}} > > > {{{id=25| > > eqns[4]=subs_eq(power_eq(eqns[1]-1,2),*solve(map(eqns.get,range > > (2,3+1)),k,SWL)[0]);eqns[4] > > /// > > > (Cv - 1)^2 == alpha*Cv > > }}} > > > {{{id=37| > > eqns[5]=(eqns[4]-alpha*Cv).expand();eqns[5] > > /// > > > Cv^2 - alpha*Cv - 2*Cv + 1 == 0 > > }}} > > > {{{id=40| > > solve[eqns[5],Cv] > > You are using solve[...] instead of solve(...). Note the square > versus round brackets. > > William- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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: traceback when calling solve on an equation indexed by a dict, but not when calling on the pasted equation
2009/4/11 Chris Chiasson : > > does anyone know what could be causing this? (pasted notebook below - > i would publish this on sagenb.org, but its publishing feature isn't > working for me right now (keeps giving an invalid url)) > > ---begin notebook after this line- > Lift Coefficient > system:sage > > {{{id=21| > var('Cv Vr k g SWL Design') > assume(Cv>1,Vr>=0,k>0,g>0,SWL>0,Design>0) > eqns={1:Cv==1+Vr*sqrt(k/(g*SWL)),2:SWL*Cv==Design} > eqns > /// > > > {1: Cv == sqrt(k)*Vr/(sqrt(g)*sqrt(SWL)) + 1, 2: Cv*SWL == Design} > }}} > > {{{id=34| > power_eq = lambda eq, n: eq.operator()(eq.lhs()^n, eq.rhs()^n) #from > mhansen on sage-devel > subs_eq = lambda eq, *args: eq.operator()(eq.lhs().subs_expr > (*args),eq.rhs().subs_expr(*args)) > /// > }}} > > {{{id=38| > var('alpha') > assume(alpha>0) > eqns[3]=alpha==k*Vr^2/g/Design > /// > }}} > > {{{id=25| > eqns[4]=subs_eq(power_eq(eqns[1]-1,2),*solve(map(eqns.get,range > (2,3+1)),k,SWL)[0]);eqns[4] > /// > > (Cv - 1)^2 == alpha*Cv > }}} > > {{{id=37| > eqns[5]=(eqns[4]-alpha*Cv).expand();eqns[5] > /// > > Cv^2 - alpha*Cv - 2*Cv + 1 == 0 > }}} > > {{{id=40| > solve[eqns[5],Cv] You are using solve[...] instead of solve(...). Note the square versus round brackets. 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: Step by step result
On 11 Dub, 02:26, mabshoff wrote: > On Apr 10, 5:21 pm, kcrisman wrote: > If I remember correctly Derive had such a "step by step" mode for > various things like limits, integration and so on. Derive itself was > killed as a product, so AFAIK you cannot buy it any more. The same is for exmaple in maple for derivatives and integrals, you can try it online at http://cgi.math.muni.cz/~xsrot/int/uvod.cgi?cnt=yes The checkbox "Zobrazit postup výpočtu:" means show steps. In Sage you can write some worksheets which solve selected typical problems, just like Maxima and http://user.mendelu.cz/marik/maw/ od Mathematica and http://calc101.com/ The following post could be also interestin for you: http://thread.gmane.org/gmane.comp.mathematics.maxima.general/23736/focus=23758 Robert Marik > > > Good luck! > > > - kcrisman > > Cheers, > > Michael --~--~-~--~~~---~--~~ 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] traceback when calling solve on an equation indexed by a dict, but not when calling on the pasted equation
does anyone know what could be causing this? (pasted notebook below - i would publish this on sagenb.org, but its publishing feature isn't working for me right now (keeps giving an invalid url)) ---begin notebook after this line- Lift Coefficient system:sage {{{id=21| var('Cv Vr k g SWL Design') assume(Cv>1,Vr>=0,k>0,g>0,SWL>0,Design>0) eqns={1:Cv==1+Vr*sqrt(k/(g*SWL)),2:SWL*Cv==Design} eqns /// {1: Cv == sqrt(k)*Vr/(sqrt(g)*sqrt(SWL)) + 1, 2: Cv*SWL == Design} }}} {{{id=34| power_eq = lambda eq, n: eq.operator()(eq.lhs()^n, eq.rhs()^n) #from mhansen on sage-devel subs_eq = lambda eq, *args: eq.operator()(eq.lhs().subs_expr (*args),eq.rhs().subs_expr(*args)) /// }}} {{{id=38| var('alpha') assume(alpha>0) eqns[3]=alpha==k*Vr^2/g/Design /// }}} {{{id=25| eqns[4]=subs_eq(power_eq(eqns[1]-1,2),*solve(map(eqns.get,range (2,3+1)),k,SWL)[0]);eqns[4] /// (Cv - 1)^2 == alpha*Cv }}} {{{id=37| eqns[5]=(eqns[4]-alpha*Cv).expand();eqns[5] /// Cv^2 - alpha*Cv - 2*Cv + 1 == 0 }}} {{{id=40| solve[eqns[5],Cv] /// Traceback (most recent call last): File "", line 1, in File "/home/sage/sagenb/sage_notebook/worksheets/chris.chiasson/0/ code/6.py", line 7, in exec compile(ur'solve[eqns[_sage_const_5 ],Cv]' + '\n', '', 'single') File "/home/sage/sage_install/sage-a/local/lib/python2.5/site- packages/SQLAlchemy-0.4.6-py2.5.egg/", line 1, in TypeError: 'function' object is unsubscriptable }}} {{{id=42| eqns[5] /// Cv^2 - alpha*Cv - 2*Cv + 1 == 0 }}} {{{id=43| solve(Cv^2 - alpha*Cv - 2*Cv + 1 == 0,Cv) /// [Cv == (-sqrt(alpha)*sqrt(alpha + 4) + alpha + 2)/2, Cv == (sqrt(alpha) *sqrt(alpha + 4) + alpha + 2)/2] }}} {{{id=44| /// }}} {{{id=45| /// }}} --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---