[sage-support] Truth tables non shown corretly

2015-09-01 Thread Jotace
Hello, I originally sent this post to the sage cloud list https://groups.google.com/forum/#!msg/sage-cloud/5TMzo0nzorQ/5JwblSDXAwAJ > When I do : > > f = propcalc.formula("p&(q|r)") > f.truthtable() > > I get the expected result, but doing > > typeset_mode(True) > f =

[sage-support] Explicit solution (not implicit) for a separable ODE

2015-05-05 Thread Jotace
Hello, I am trying to obtain the explicit expression for the solution od an ODE, my code is var('k') y= function('y',x) h=desolve(diff(y,x) - k*y*(1-y),y, ivar=x) h I would like to isolate y(x) = ... (with the computer, of course) I played around with h.lhs() and h.rhs(), but did not get the

[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

[sage-support] Re: One-cell server not working but local does.

2014-01-31 Thread Jotace
Jason, you are right, without that option it workspretty well! Thanks! JC El jueves, 30 de enero de 2014 23:04:45 UTC-5, Jason Grout escribió: On 1/30/14 6:12 PM, Jotace wrote: Any ideas? Take out the typeset='latex' parameters: http://sagecell.sagemath.org/?q=mfikde I don't

[sage-support] One-cell server not working but local does.

2014-01-30 Thread Jotace
Hello everyone, I'd like to use the following code to put it in a web page, using one-cell server. It works on my computer, but does not on one cell-server (tried it from my web page, and also from the one-cell server page). The error message is too cryotic for me :-( Any ideas? Thanks JC

[sage-support] Plot of a 2-var discontinous function

2013-11-19 Thread Jotace
Hello to everyone I was trying to plot a discontinuous function of two variables like this cmsel = [colormaps['hot'](i) for i in sxrange(0,1,0.05)] Surff=plot3d(arctan(y/x),(x,-1,1),(y,-1,1),adaptive=True, color=cmsel) show(Surff) This works very fine for continuous functions. I cannot use the

[sage-support] Re: using cell server with moodle (problem with script balise)

2013-11-13 Thread Jotace
I had the very same problem with Moodle2.0 My solution is not to wite an html document inside Moodle. Rather, what I do is write the .html file externally, with Kompozer, then in Moodle i upload that external file. I don'n know if this works if, for instance you want to tak profit of the

[sage-support] Color in html output and rounding matrices

2013-11-13 Thread Jotace
Hello to everyone, I was trying to make some camputational tool for my students, to allow them to compute powers of matrices quickly. I made a tiny htm page with some text giving explanations, and the following code embedden in a one-cell script

[sage-support] Adaptive colors in 2d plots

2013-09-17 Thread Jotace
Hello everybody, i wouls like to plot a 2d-curve given aparametrically and color it by using its curvature function. I've managed to do something similar in 3d plots (coloring them by height, using this piece of code cmsel = [colormaps['autumn'](i) for i in sxrange(0,1,0.05)] S=plot3d(f,(x,-2,

[sage-support] Latex in interact?

2013-09-12 Thread Jotace
Hi all, I'm trying to do an interact to illustrate the curvature of a curve given by y=f(x). Here is the code, but at the end I cannot properly show the function k(x). What's wrong? What should I do? var('x') f(x)=x^4-2*x^2 @interact def _(f=input_box(x^4-2*x^2, width=15,

[sage-support] Re: One cell server

2013-08-05 Thread Jotace
Thanks Jason, I think we'll use aleph. Nevertheless I would like to try your virtual image, where can one find it? Regards, JC -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it,

[sage-support] One cell server

2013-07-26 Thread Jotace
HI all, Next fall I willl be teaching a vector calculus course for 1st year physics students (25 students in my group). I'll use SAGE, and I'm planning to embed lots of SAGE code inside web pages in the Moodle site for my course. I've been doing some tests, ant everything seems to work quite

[sage-support] Curl and 2d vector field

2013-03-27 Thread Jotace
Hi all, I'm teaching vector calculus, and I would like to show the meaning of the curl to my students. So here is what I want to do: 1. Plot a 2d-vector field F = (P,Q) (I know ho to do this) 2. Compute the k-component of this field (o.k) 3. Plot part of the 3d-vector field curl(P,Q,0), more

[sage-support] Evaluating a symbolic expression

2012-11-03 Thread Jotace
Hi all, I want to find the max/min of a function f =f(x,y,z) of three variables under two constraints g_1 = 0, g_2=0 using Lagrange multipliers. I am able to build and solve the system, even to form the list of values fox the critical points, say P1=[1,2,3], but then I am not able to cmpute

[sage-support] Indexed variables/functions

2012-11-01 Thread Jotace
Hi all, How do I create a family of variables. I would need to create, say x_i for i \in N, or at least to have the possibility to use variables x_i for arbitrari i's If it's too complex, it would be enough to create a fixed rannge of variables, say x_i for i in range(100). What I need to do

[sage-support] What's wrong ?

2012-10-15 Thread Jotace
Hi all, I'm trying this var('x,y'); @interact def taylor_play(f=x^2-y^2,order=slider(1,10,1,default=1), x0=slider(-2,2,.25,default=0),y0=slider(-2,2,.25,default=0)): p1=plot3d(f,(x,-1,1),(y,-1,1),color='blue') p2=plot(taylor(f,(x,x0),(y,0),order),(x,-1,1),(y,-1,1), color='red')

[sage-support] Labels and others in 3D plots

2011-09-01 Thread Jotace
Hi all, I'm trying to make 3D plots but I'm not able to: 1. Put labels on the axes, 2. Create a surface, say F(x,y,z)=0, of z=f(x,y) together with some level curves. The only level curves I can plot lie on a 2d plot. On the ther hand I'can't figure what's wrong with: var('x, y, z'); @interact

[sage-support] Maybe not a sage problem?

2011-07-11 Thread Jotace
Hi all, I'm using sage 4.7 on ubuntu 11.04, and I am having problems with 3dplots, but this happens only with the notebook interface. 2D plots are o.k. in both modes, and 3d plots from the terminal work fine, so jmol is there. Whe trying to do a 3d plot, a black square appears in my browser. In