[sage-support] How to write 10exp(-5) in SAGEMATH

2017-07-03 Thread Fjordforsk A/S
Hi, how does one write 10^(-8) ? Is it as the conventional way 10**(-8) or is it 10exp(-8) ? -- 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, send an email to sage-support+unsubs

[sage-support] Still unable to plot long function

2017-07-03 Thread Fjordforsk A/S
Hi, I tried many re-edits, and found a few errors along the way, however, there seems not to be any errors left, still nothing happens when issuing the plot3d command: plot3d(lambda x,y:(exp(I*2000*(1.60217662*10**(-19))/(299792458*6.6260700* : 10**(-34)))-(sqrt(I*(1.60217662*10**(-19))/(4*

[sage-support] Re: Error plotting 3D

2017-07-03 Thread Fjordforsk A/S
Changed to: sage: plot3d(lambda x,y:(exp(I*2000*(1.60217662*10**(-19))/((299792458*6.6260700 : *10**(-34)))-sqrt(I*(1.60217662*10**(-19))/(4*6.62607004*10**(-34)*2997924 : 58*2000-(((1.60217662*10**(-19))^2*2000**2)/(((6.62607004*10**(-34))**2)** : 299792458**2)))(x**2+y**2)).real_

[sage-support] Error plotting 3D

2017-07-03 Thread Fjordforsk A/S
Hi, I get this error: */home/sem/SageMath/src/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.__call__ (/home/sem/SageMath/src/build/cythonized/sage/symbolic/expression.cpp:30500)() 5058 z^2 + x^y 5059 """-> 5060 return

[sage-support] Solving PDEs analytically

2017-07-03 Thread Fjordforsk A/S
Hi, I was wondering if SAGE can be used to solve a PDE in the form: u(x,y)''+u(x,y)' + const = 0 ? Thanks! -- 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, send an email to s

[sage-support] Re: Plotting complex functions in imaginary and real parts

2017-06-27 Thread Fjordforsk A/S
pi)))*(x+I*y)*exp(-((0.25)*((x+I*y)**2.imag_part(),(x,-3*pi,3*pi),(y,0,2),adaptive=True, > : color=cmsel) > > Note that I removed "math." prefix from sqrt() and put the brackets at the > right places. > > > > On Monday, June 26, 2017 at 1:27:45 PM UTC+1, Fjordforsk

[sage-support] Re: Plotting complex functions in imaginary and real parts

2017-06-26 Thread Fjordforsk A/S
Note, that when brackets are corrected it gives the following result: TypeError Traceback (most recent call last) in () > 1 plot3d(lambda x,y:(Integer(1)/(math.sqrt((Integer(2)**Integer(2))*pi)))*(x+I*y)*exp(-((RealNumber('0.25'))*((x+I*y)**Integer(2.imag_

[sage-support] Plotting complex functions in imaginary and real parts

2017-06-26 Thread Fjordforsk A/S
Hi, I tried to use a command found online for plotting complex and real components of a function: var('x y'); cmsel = [colormaps['gnuplot2'](i) for i in sxrange(0,1,0.02)] plot3d(lambda x,y:(1/(math.sqrt((2**2)*pi)))*(x+I*y)*exp(-((0.25)*((x+I*y)**2.imag_part(),(x,-3*pi,3*pi),(y,0,2),adaptiv

[sage-support] Re: Further on plotting functions

2017-06-26 Thread Fjordforsk A/S
something stops here. Is this a wrong type of way of plotting that function? mandag 26. juni 2017 13.25.58 UTC+2 skrev Eric Gourgoulhon følgende: > > > > Le lundi 26 juin 2017 13:05:27 UTC+2, Fjordforsk A/S a écrit : >> >> Hello, I tried a different variant of the previous plot

[sage-support] Further on plotting functions

2017-06-26 Thread Fjordforsk A/S
Hello, I tried a different variant of the previous plot: def f(x,y): return math.sqrt(2**3))*exp(-(x**2 + y**2) P = plot3d(f,(-3,3),(-3,3), adaptive=True, color=rainbow(60, 'rgbtuple'), max_bend=.1, max_depth=15) P.show() however, this also does not show. -- You received this message because

[sage-support] Plottig functions

2017-06-26 Thread Fjordforsk A/S
Hello, I am having trouble plotting this function: sage: plot3d((math.sqrt(2**3))*math.exp(-(x**2 + y**2)), (x, 0, 5 ), (y, 0, 5)) plot3d((math.sqrt(Integer(2)**Integer(3)))*math.exp(-(x**Integer(2) + y**Integer(2))), (x, Integer(0), Integer(5) ), (y, Integer(0), Integer(5))) /home/sem/SageMa

[sage-support] Plotting strange functions

2017-01-28 Thread Fjordforsk A/S
Hello, I tried to plot plot f(x,y,z)=x+y+z but couldn't get a plot. I thought this was because of the 4D nature of the plot, however, when trying on Wolfram alpha, it gave quite a strange plot. How can this type of functions be plotted, and were is in so case f(x,y,z) (on which axis) ? Thanks

[sage-support] Re: "Integer is not iterable"

2017-01-05 Thread Fjordforsk A/S
On Wednesday, January 4, 2017 at 1:55:36 PM UTC, Fjordforsk A/S wrote: >> >> I am trying to plot a trigonometric function, but get a strange result: >> >> plot3d(lambda >> x,t:((cos(2^(0.5)*x)*sech(2^(0.5)*t)+I*2^0.5*tanh(2*t))/(2^(0.5)-cos(2^(0.5)*x)*sech(2^(0,5)*t)))*e^

[sage-support] "Integer is not iterable"

2017-01-04 Thread Fjordforsk A/S
I am trying to plot a trigonometric function, but get a strange result: plot3d(lambda x,t:((cos(2^(0.5)*x)*sech(2^(0.5)*t)+I*2^0.5*tanh(2*t))/(2^(0.5)-cos(2^(0.5)*x)*sech(2^(0,5)*t)))*e^(2*I*t).real_part(),(x,-3*pi,3*pi),(t,-5,5),adaptive=True,color=cmsel) /home/sem/SageMath/sage-7.4/src/sage/ri

[sage-support] Re: Trouble using 3dplot

2017-01-03 Thread Fjordforsk A/S
OK, thanks! tirsdag 3. januar 2017 14.07.18 UTC+1 skrev Dima Pasechnik følgende: > > if you remove 'adaptive=True' then it works---so probably you're hitting a > bug in computing the best box to plot, or something like this. > > On Tuesday, January 3, 2017 at 1

[sage-support] Re: Trouble using 3dplot

2017-01-03 Thread Fjordforsk A/S
13.24.58 UTC+1 skrev Dima Pasechnik følgende: > > > > On Tuesday, January 3, 2017 at 12:02:41 PM UTC, Fjordforsk A/S wrote: >> >> Hello, I get an idle response from SAGE when trying to plot this: >> >> var('x t'); >> cmsel = [colormaps['gnuplot2

[sage-support] Re: Trouble using 3dplot

2017-01-03 Thread Fjordforsk A/S
Thanks! tirsdag 3. januar 2017 13.24.58 UTC+1 skrev Dima Pasechnik følgende: > > > > On Tuesday, January 3, 2017 at 12:02:41 PM UTC, Fjordforsk A/S wrote: >> >> Hello, I get an idle response from SAGE when trying to plot this: >> >> var('x t');

[sage-support] Trouble using 3dplot

2017-01-03 Thread Fjordforsk A/S
Hello, I get an idle response from SAGE when trying to plot this: var('x t'); cmsel = [colormaps['gnuplot2'](i) for i in sxrange(0,1,0.02)] plot3d(lambda x,t:(1+x*(e^(x+t+1)+e^(2*x+2*t+2)-(x^2*(I*x^2-t)/(x^3+t^2+2))*e^(3*x+3*t+3)).imag_part(),(x,-3*pi,3*pi),(t,-2,2),adaptive=True,color=cmsel) Th

[sage-support] Citing SAGE

2016-12-29 Thread Fjordforsk A/S
Hello, which references for SAGE are best for manuscripts? I used the following: Stein, W. (2015). SageMath Mathematics Software (Version 6.5). Kim, D.-S., Markowsky, G., and Lee, S.-G. (2010). Mobile Sage-Math for linear algebra and its application. Electron. J. Math. Technol. *4*, 285–298.

Re: [sage-support] Re: Plotting long functions

2016-12-29 Thread Fjordforsk A/S
016 10:33 AM, Fjordforsk A/S wrote: > > This is how its supposed to go: > > > > sage: plot3d(((1 - (3/8 - 3*t^2 - 2*t^4 - 9*x^2 - 10*x^4 - 12*t^2*x^2) + > > i*x*(15/4 + 6*t^2 - 4*t^2 - 2*x^2 - 4*x^4 + 8*t^2*x^2))/(1/8*(3/4 + > 9*t^2 + > > 4*t^2+ 16/3*t^6 + 33*x

[sage-support] Re: Plotting long functions

2016-12-28 Thread Fjordforsk A/S
(24) + Integer(16)/Integer(3)*x**Integer(6*e**(i*x)), (x, -Integer(2), Integer(2)), (t, -Integer(2), Integer(2)) TypeError: plot3d() takes at least 3 arguments (1 given) sage: onsdag 28. desember 2016 13.19.55 UTC+1 skrev Fjordforsk A/S følgende: > > Hello, I am not sure on the reply sage gi

[sage-support] Plotting secant functions

2016-12-28 Thread Fjordforsk A/S
Hello, I am having trouble plotting this function: sage: *plot3d([(-t+x)^(0.5)*(sech[(t-x)^2]^2)] (x,-5,5), (t, -5, 5))* --- TypeError Traceback (most recent call last) in () > 1 plot3d([(

[sage-support] Plotting long functions

2016-12-28 Thread Fjordforsk A/S
Hello, I am not sure on the reply sage gives me on plotting a long function: sage: plot3d(((1 - (3/8 - 3*t^2 - 2*t^4 - 9*x^2 - 10*x^4 - 12*t^2*x^2) + x*(15/4 + 6*t^2 - 4*t^2 - 2*x^2 - 4*x^4 + 8*t^2*x^2))/(1/8*(3/4 + 9*t^2 + 4*t^2+ 16/3*t^6 + 33*x^2 + 36*x^24 + 16/3*x^6)))*e^(x)), (x, -2, 2), (t,