[sage-support] Re: Free Algebra with symbolic coefficients

2014-09-09 Thread Chris Thron
This works beautifully, thanks. I have another small issue: I can't do substitutions in equality expressions with terms in the free algebra. For instance, Sage tells me "Not iterable" var('c, pi, c, mu_0,epsilon_0,epsilon,mu,q,Q,e') F. = FreeAlgebra(SR,27,'curl,div,grad,d_t,d_x,d_y,d_z,

[sage-support] Error in plotting

2014-09-09 Thread Miguel Yorro
(I figured I didn't indicate my OS and the version of Sage that I'm using, so I'm making a new question to add those details. You can ignore the previous post) Hi, I'm having a problem running the following code: var('x') sinc(x) = sin(x) / x plot(sinc, (x, -10, 10)) as it produces the follow

[sage-support] Cannot plot in both notebook and terminal mode

2014-09-09 Thread Miguel Yorro
Hi! I'm using Craig Finch Sage Beginner's Guide to learn to use Sage. However, when I ran the following code (both in the notebook and terminal mode) sage: var('x') x sage: sinc(x) = sin(x)/x sage: plot(sinc, (x, -10, 10)) the following error appeared (terminal mode) -

Re: [sage-support] Cannot plot in both notebook and terminal mode

2014-09-09 Thread Daniel Krenn
Am 2014-09-09 um 05:03 schrieb Miguel Yorro: > Hi! I'm using Craig Finch Sage Beginner's Guide to learn to use Sage. > However, when I ran the following code (both in the notebook and > terminal mode) > > | > sage:var('x') > x > sage:sinc(x)=sin(x)/x > sage:plot(sinc,(x,-10,10)) Try one of the fo

Re: [sage-support] Error in plotting

2014-09-09 Thread Vegard Lima
Hi, On Tue, Sep 9, 2014 at 5:15 AM, Miguel Yorro wrote: > Hi, I'm having a problem running the following code: > > var('x') > sinc(x) = sin(x) / x > plot(sinc, (x, -10, 10)) This looks fine. > as it produces the following error (quite long) > > --

Re: [sage-support] Error in plotting

2014-09-09 Thread kcrisman
> > > I'm assuming this is the binary download of sage for ubuntu? > This discussion might be relevant: > http://trac.sagemath.org/ticket/8049 > > Maybe the suggestion there might help: > $ sudo apt-get install libgfortran3 > > Or apt-getting numpy often helps with this sort of error on the U

[sage-support] Re: Free Algebra with symbolic coefficients

2014-09-09 Thread Nils Bruin
On Monday, September 8, 2014 6:48:44 PM UTC-7, Chris Thron wrote: > > This works beautifully, thanks. > > I have another small issue: I can't do substitutions in equality > expressions with terms in the free algebra. For instance, Sage tells me > "Not iterable" > > > var('c, pi, c, mu_0,epsil

Re: [sage-support] Re: latex/sagetex display of matrix

2014-09-09 Thread kcrisman
Sorry to dredge this up... in case anyone finds this, it was fixed in http://trac.sagemath.org/ticket/5474 a few months later! sage: latex.matrix_delimiters("[", "]") On Thursday, December 18, 2008 5:54:22 AM UTC-5, Robert Bradshaw wrote: > > On Dec 17, 2008, at 11:52 PM, Geodet wrote: > > > >

[sage-support] Numerical integration and parametic curves

2014-09-09 Thread Jotace
Hi all, I want (my students) to plot Cornu's spiral, givent in parametric form by x(t) = integral cos(pi/u^2/2), u going from 0 to t , and y(t) defined analogously using the sine function. The integral connot be evaluated symbolically, I guess. The first attempt would be parametric_plot([inte

[sage-support] Re: Cannot plot in both notebook and terminal mode

2014-09-09 Thread Nils Bruin
On Monday, September 8, 2014 8:03:31 PM UTC-7, Miguel Yorro wrote: > > > 28 from numpy.lib import triu, asfarray > ---> 29 from numpy.linalg import lapack_lite, _umath_linalg > 30 from numpy.matrixlib.defmatrix import matrix_power > 31 from numpy.compat import asbytes > > > ImportErr

[sage-support] Re: Numerical integration and parametic curves

2014-09-09 Thread Hal Snyder
This works on my sage-6.1.1: s = var('s') def g(s): return numerical_integral(cos(pi*x^2/2), 0, s, max_points=100)[0] def h(s): return numerical_integral(sin(pi*x^2/2), 0, s, max_points=100)[0] p = plot((g,h),(-pi,pi),parametric=True) show(p) On Tuesday, September 9, 2014 5:17:14 PM UT