[sage-support] lost connection to maxima

2009-01-13 Thread ma...@mendelu.cz
Dear all, I had a lecture in computer lab. There were about 15 students on one sage server. After about 20 minutes we got messages, that Sage lost connection to Maxima. I did not know how to establish the connection again and I restarted the virtual server (I run sage on virtual server under Deb

[sage-support] Re: lost connection to maxima

2009-01-13 Thread ma...@mendelu.cz
On 13 Led, 17:47, "William Stein" wrote: > On Tue, Jan 13, 2009 at 8:36 AM, ma...@mendelu.cz wrote: > > > Dear all, > > > I had a lecture in computer lab. There were about 15 students on one > > sage server.  After about 20 minutes we got messages, that

[sage-support] Re: lost connection to maxima

2009-01-13 Thread ma...@mendelu.cz
Many thanks, memory seems to be a big problem on my server (I did tests you suggested on my laptop and each worksheet is consumig a lot of memory). I have seen that sagenb.org has 2GB memory - like my PC. How many users wirk simultaneously on sagenb.org? * I think that I can set up my personal co

[sage-support] Re: lost connection to maxima

2009-01-13 Thread ma...@mendelu.cz
Thank you for all your answers. I will upgrade my hardware > 512MB is very very piddly for a server. > Yes. I thought that this could be enough, because another my server, Mathematical Assistant on Web ( http://user.mendelu.cz/marik/maw/index.php?lang=en&form=derivace ) runs pretty well with m

[sage-support] Re: lost connection to maxima

2009-01-13 Thread ma...@mendelu.cz
> > In the text "The calculators are divided into several groups, the > desription is available", the word "description" is missing the "c". > Fixed, thanks. Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscr

[sage-support] confusing output? latex(7-(-1)^(1/3))

2009-01-17 Thread ma...@mendelu.cz
Hello all The command latex(7-(-1)^(1/3)) produces 7 - {-1}^{\frac{1}{3}} Is it possible to change it into 7 - \left(-1\right)^{\frac{1}{3}} Which function should be redefined to gain this behavior? I think that two minus sign, one following the other, could be confusing (for students of econ

[sage-support] Re: lost connection to maxima

2009-01-19 Thread ma...@mendelu.cz
On 14 Led, 08:50, mabshoff wrote: > > Your server calls Maxima and without taking a closer look it is > unclear to me if you start a Maxima process per user or not. Overall > Maxima is lighter than Sage primarily because it is all common lisp > and does not use any external libraries per defaul

[sage-support] 2D plot with discontinuity

2009-03-10 Thread ma...@mendelu.cz
Hello all Maxima is much better when drawing 2D plots of functions with jump discontinuity. Sage makes a vertical lines at disontinuities, compare A=plot(1/(x^2-1),(x,-3,3)) show(A,ymax=10,ymin=-10) in sage and plot2d(1/(x^2-1),[x,-3,3],[y,-10,10]) in Maxima. Is it possible to remove these al

[sage-support] jsmath bitmap fonts in sage 3.4 and solve command

2009-03-16 Thread ma...@mendelu.cz
Hello, I installed today new sage with jsmath bitmap font. These fonts did not work, I had to put the bitmap fonts from old installation to / opt/sage-3.4-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux/data/extcode/ javascript/jsmath manually. >From this reason I report this problem (maybe a bug).

[sage-support] Re: jsmath bitmap fonts in sage 3.4 and solve command

2009-03-18 Thread ma...@mendelu.cz
On 17 Bře, 00:41, Jason Grout wrote: > ma...@mendelu.cz wrote: > > Robert, for now, you can > installhttp://sage.math.washington.edu/home/mabshoff/spkgs/jsmath-image-font... > into sage 3.4 and it should work.  The javascript code was recently > reorganized, so that explain

[sage-support] Re: Bug in plot?

2009-03-18 Thread ma...@mendelu.cz
On 18 Bře, 20:23, adrian wrote: > If i try to do > plot(cos(x),(x,-3,3)) This command works in Internet version www.sagenb.org The same for sphere() Maybe something hangs from previous computation? Did the restart of worksheet not help? Robert > in sage 3.4 (through the internet version) >

[sage-support] Re: Korean characters in TinyMCE

2009-03-19 Thread ma...@mendelu.cz
Hello, the same is with Czech. Seems to be related to http://groups.google.cz/group/sage-support/browse_thread/thread/60a863def66c05a1/ca1626cc03a29bfa?lnk=gst&q=accent#ca1626cc03a29bfa and reported on http://trac.sagemath.org/sage_trac/ticket/4956 Robert On 19 Bře, 08:27, Dan Drake wrote: > On

[sage-support] Re: Korean characters in TinyMCE

2009-03-19 Thread ma...@mendelu.cz
On 19 Bře, 07:00, Kwankyu wrote: > Hi, > > If I write in Korean and save in the TinyMCE editor in the Sage > Notebook, it appears fine. But if I "open" the cell to change the > content, then the Korean characters are all gone and strange > characters are shown instead. Perhaps an encoding problem

[sage-support] bug in region_plot

2009-03-19 Thread ma...@mendelu.cz
Hello, this command produces one half of a cirle, not 1/4 as excepted. I think that this is a bug in sage 3.4 Robert region_plot([y>0,x>0,x^2+y^2<3], (-3, 3), (-3, 3),plot_points=100,incol='gray').show(aspect_ratio=1) --~--~-~--~~~---~--~~ To post to this group,

[sage-support] Re: Korean characters in TinyMCE

2009-03-19 Thread ma...@mendelu.cz
Hello, I used the commands hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw- attachment/ticket/4547/trac_4547.patch") hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw- attachment/ticket/5211/trac_5211.patch") hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw- at

[sage-support] Re: Korean characters in TinyMCE

2009-03-19 Thread ma...@mendelu.cz
On 19 Bře, 16:55, "ma...@mendelu.cz" wrote: > Hello, I used the commands > > hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw- > attachment/ticket/4547/trac_4547.patch") > hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw-

[sage-support] Re: bug in region_plot

2009-03-19 Thread ma...@mendelu.cz
On 19 Bře, 16:47, Jason Grout wrote: > ma...@mendelu.cz wrote: > > Hello, this command produces one half of a cirle, not 1/4 as excepted. > > I think that this is a bug in sage 3.4 > > > Robert > > > region_plot([y>0,x>0,x^2+y^2<3], (-3, 3), (-3,

[sage-support] Re: bug in region_plot

2009-03-19 Thread ma...@mendelu.cz
> > This works: > sage: var('x,y') > sage: region_plot([y>0,x>0,x^2+y^2<3], (x, -3, 3), (y, -3,3)) > > But if one leaves out the variables, one gets an half circle: > sage: region_plot([y>0,x>0,x^2+y^2<3], (-3, 3), (-3,3)) > > I've written a patch which fixes > this:http://trac.sagemath.org/sage

[sage-support] Re: Testing whether a function is always positive

2009-03-19 Thread ma...@mendelu.cz
Do you mean something like bool(x^6>-1) Or you can use maxima inside sage and the command is http://maxima.sourceforge.net/docs/manual/en/maxima_5.html#Item_003a-is I think that in general you can expect poor results in any computer algebra system (like you write about Maple). Robert On

[sage-support] Re: Bug with plotting cube roots

2009-03-20 Thread ma...@mendelu.cz
On 20 Bře, 13:53, kcrisman wrote: > something like this, because there are too many similar things to > catch. I also believe Maple does not plot the negative values. > You are right, Maple plots x^(1/3) only for positive x. As a side effect, if you try to plot the function y=(x^2-1)^(1/3) w

[sage-support] Re: Korean characters in TinyMCE

2009-03-20 Thread ma...@mendelu.cz
Hello all, after installing these patches I observed the folloving behavior: If I enter $x$ in tinymce, save and then enter again, I see the picture for x and not $x$. When I save again, $x$ is replaced by sentence like Hence I cannot return to editing mathematics. This problem is not present

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread ma...@mendelu.cz
On 21 Bře, 07:05, Craig Citro wrote: > > That works well, but what about when the expression is multivariate, > > such as: > > > expand((1+x+1/y)^10) > > > It would be nice to have a general command to count the number of > > summands in such an expression. > > Yep, I agree. Here is a *terrible*

[sage-support] Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread ma...@mendelu.cz
Hello, this is related to the thread at http://groups.google.cz/group/sage-support/browse_thread/thread/2a699360a3847bab I think that installation of http://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2.patch causes that TinyMCE cannot be used to edit mathematical formulas If I

[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-25 Thread ma...@mendelu.cz
On 22 Bře, 04:46, Jason Grout wrote: > > As a hint to whoever wants to hunt this down if they get to it before > me: the original text of the cell is stored in a parameter passed to > tinymce when tinymce is initialized.  This is passed in the "data" > attribute in the following code from cell.py

[sage-support] Re: Step by step result

2009-04-11 Thread ma...@mendelu.cz
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 exmapl

[sage-support] Re: Step by step result

2009-04-12 Thread ma...@mendelu.cz
Hi, great idea, but remember that computer algebra systems use slightly different way than humans to solve problems... I think than more people work on something like this -- just guessing from questions like http://thread.gmane.org/gmane.comp.mathematics.maxima.general/23048/focus=23051 and http

[sage-support] Re: setup a sage server

2009-04-17 Thread ma...@mendelu.cz
Hi, I think that it is insecure to run sage on a server which is used for other tasks (webserver, mail server, ). At least run sage not under your or root account, otherwise you give to the sage users all your privileges. Better idea is to have one computer for Sage and nothing more. As Jason

[sage-support] Re: beginner problems

2009-04-20 Thread ma...@mendelu.cz
On 20 Dub, 08:17, Florian Beutler wrote: > if I use > rho = 0.0058/((r/2.4)*(1+(r/2.4))^2) > integral(rho,r,0,10) > btw: your integral is divergent (behaves like 1/r near zero). R. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@goo

[sage-support] Re: beginner problems

2009-04-20 Thread ma...@mendelu.cz
Hi, try this r=var('r') rho = 0.0058/((r/2.4)*(1+(r/2.4))^2) integral(rho,r,0.01,10).n() Robert Marik On 20 Dub, 08:17, Florian Beutler wrote: > hallo > I just installed sage today and probably the problem I have at the > moment is a typical beginner problem, but unfortunately the tuto

[sage-support] Re: unevaluated input (det, int, ....)

2009-04-22 Thread ma...@mendelu.cz
On Apr 21, 8:34 pm, kcrisman wrote: > On Apr 19, 12:42 pm, "ma...@mendelu.cz" wrote: > > > Hell, I think that my question is related > > tohttp://groups.google.cz/group/sage-support/browse_thread/thread/7cb33... > > > How can I write a function which takes

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread ma...@mendelu.cz
On 23 Dub, 20:38, William Stein wrote: > On Thu, Apr 23, 2009 at 6:44 AM, philabuster wrote: > > > Hi, > > > I was wondering why Sage expands products of sums in an unexpected > > order: > > > var('a0,a1,b0,b1,b2,c0,c1,c2,c3,d0,d1,d2,d3,d4') > > The ordering of these terms is determined by max

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread ma...@mendelu.cz
On 23 Dub, 20:38, William Stein wrote: > New symbolics also tend to be easier to work with term-by-term: > > sage: v = expand((a0+a1)*(b0+b1)) > sage: v[0] > a0*b0 > sage: v[1] > a0*b1 > sage: v[2] > a1*b0 > sage: v[3] > a1*b1 - Maxima 5.13.0 http:/

[sage-support] differential equations in SAGE

2009-04-28 Thread ma...@mendelu.cz
Dear SAGE experts, from the output of desolve?? command I understand that desolve call maxima and ode2 to solve ordinary differential equations. 1. How can I get the access to method variable? commands maxima("ode2('diff(y,x)=x^6*cos(y),y,x)") maxima('method') give the answer "separable", but

[sage-support] Re: differential equations in SAGE

2009-04-28 Thread ma...@mendelu.cz
On 28 Dub, 15:42, "ma...@mendelu.cz" wrote: > Dear SAGE experts, > forgot to write: the test notebook for these issues is at http://www.sagenb.org/home/pub/494/ Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@

[sage-support] substituting initial condition into ODE

2009-04-28 Thread ma...@mendelu.cz
Dear memebers of SAGE-support I wonder if it is possible to substitute initial conditions into an equation produced by desolve. I tried something like y=function('y',x) desolve(diff(y,x)+sin(x)*y^6==0,y) sol({x:pi,y:9}) and got 1/(5*y(pi)^5) == c + 1 but I would like to see 1/(5*9^5) == c

[sage-support] Re: substituting initial condition into ODE

2009-04-28 Thread ma...@mendelu.cz
bstitutions. > Anyway, I get this: > > sage: y=function('y',x) > sage: desolve(diff(y,x)+sin(x)*y^6==0,y) > 1/(5*y(x)^5) == c - cos(x) > sage: desolve(diff(y,x)+sin(x)*y^6==0,y,[pi,9]) > 1/(5*y(x)^5) == (-295245*cos(x) - 295244)/295245 > > Does that help? > &

[sage-support] Re: substituting initial condition into ODE

2009-04-29 Thread ma...@mendelu.cz
age: soln = dsolve(Derivative(y(x),x)+sin(x)*y(x)^6,y(x)); soln > (C1 - 5*cos(x))**(-1/5) > sage: ypi = soln.subs(x,pi); ypi > (5 + C1)**(-1/5) > > But now > > sage: solve(ypi - 9, C1) > > yields an error which I don't understand. > > On Tue, Apr 28, 2009 at

[sage-support] Re: outdated version of Sage in Ubuntu 9.04

2009-05-04 Thread ma...@mendelu.cz
On 4 Kvě, 11:29, mabshoff wrote: > > I would suggest you complain in the Maxima group to have them take a > stake into packaging current Maxima releases for Debian/Ubuntu. AFAIK > the Maxima maintainer for Debian isn't exactly underworked, so I am > sure he could use some help. > Hello, not r

[sage-support] Re: outdated version of Sage in Ubuntu 9.04

2009-05-04 Thread ma...@mendelu.cz
Hi On 4 Kvě, 11:56, mabshoff wrote: > > Hello, not related to Sage, but if I remember correctly, newer Maxima > > is in Debian Sid (compiled with GCL). This Sid version is slower than > > 5.13 (with GCL also). > > Do you have any idea why that is and how much slowdown there is? What > specifical

[sage-support] Re: Unexpected error during integration

2009-05-07 Thread ma...@mendelu.cz
I removed absolute value and tried indefinite integral f(k,x)=exp(-(k))*exp(-I*2*pi*k*x) print(integrate(f(k,x),k)); this gives some answer, now we can substitute limits, R. On 7 kvě, 19:27, Alan wrote: > Hi, > > I am new to Sage and am trying to reproduce a well known result that > the Four

[sage-support] Re: Multi-user server on Windows

2009-05-12 Thread ma...@mendelu.cz
Remember that unless you absolutely trust everybody with access to the server, you should always run Sage on separate server, as has been discussed in several threads in this group, for example the end of http://groups.google.cz/group/sage-support/browse_thread/thread/ad075bfd8c996424/bcacd02ab621

[sage-support] double superscript error

2009-09-04 Thread ma...@mendelu.cz
Hello, this code give "double exponent error". var('a x b gamma p') f(x)=a*x^((gamma-p))+b*x^((-p)) (f((b*p/((gamma-p)*a))^(1/gamma))).show() Is it error in sage to TeX converter? Tested today on sagenb.org Thanks Robert Marik --~--~-~--~~~---~--~~ To post to thi

[sage-support] tinyMCE bug (charcters ř čě etc.)

2009-09-18 Thread ma...@mendelu.cz
Hello all, thank you for such a wonderfull software like Sage. I appretitate the support for nonenglish languages in commnets has been added some moths ago. However, I returned to Sage after several moths without any CAS and observed, that if I use letters like ěščř in TinyMCE editor, save and the

[sage-support] solve(x==sqrt(99),x)

2009-09-18 Thread ma...@mendelu.cz
Dear users of Sage, sorry to bother again, with checked Typeset button the command solve(x==sqrt(99),x) gives x==3*sqrt(11) However sqrt(99) gives 3\,\sqrt{11}. I think that this second format should be used also in the first case and I am almost sure that it was in some previoous versions of S

[sage-support] sage vmware image visible from Internet

2009-09-24 Thread ma...@mendelu.cz
Hello all, I am trying to provide Sage server for my students. If I run Sage in vmware, I can access the vmware virtual machine from my PC only. The students can connect to my PC, but not to the virtual machine. I guess, some port forwarding and NAT setup i snecessary. I searched on sagemath.org

[sage-support] sage vmware image visible from Internet

2009-09-24 Thread ma...@mendelu.cz
Hello all, I am trying to provide Sage server for my students. If I run Sage in vmware, I can access the vmware virtual machine from my PC only. The students can connect to my PC, but not to the virtual machine. I guess, some port forwarding and NAT setup i snecessary. I searched on sagemath.org

[sage-support] Re: sage vmware image visible from Internet

2009-09-24 Thread ma...@mendelu.cz
On 24 zář, 09:17, Robert Bradshaw wrote: > This depends on what kind of PC you're running the server on. The way > we do sagenb.org is have apache running on the host machine which > forwards all incoming connections to the virtual machine with re- > writing rules. This is pretty easy to set up o

[sage-support] Re: sage vmware image visible from Internet

2009-09-24 Thread ma...@mendelu.cz
On 24 zář, 09:29, Jason Grout wrote: > > In addition to Robert Bradshaw's answer, you could also set up "bridged > networking" in VMWare for this sort of thing. > Thanks, but the network policy on our university allows to have only one (given and registered) MAC address in one connection point

[sage-support] Re: Plot function for x^(1/3)

2009-09-24 Thread ma...@mendelu.cz
On 24 zář, 20:23, Iskay wrote: > I wanted to plot x^(1/3) in sage. When I typed it on sage it returned > this. > > f = x^(1/3) > plot(f) > verbose 0 (2999: plot.py, generate_plot_points) WARNING: When > plotting, failed to evaluate function at 100 points. > verbose 0 (2999: plot.py, generate_plot

[sage-support] Re: Evaluating a Jacobian

2009-09-24 Thread ma...@mendelu.cz
On 25 zář, 04:27, Sterling wrote: > How do I evaluate a Jacobian at certain values? For example, I type: > > x1,x2,x3 = var('x1 x2 x3') > > f1(x1,x2,x3) = 3*x1 - cos(x2*x3) - (1/2) > f2(x1,x2,x3) = x1^2 - 81*(x2 + 0.1)^2 + sin(x3) + 1.06 > f3(x1,x2,x3) = e^(-x1*x2) + 20*x3 + (10*pi - 3)/3 > > f

[sage-support] Re: Evaluating a Jacobian

2009-09-24 Thread ma...@mendelu.cz
On 25 zář, 05:29, "ma...@mendelu.cz" wrote: > On 25 zář, 04:27, Sterling wrote: > > > > > How do I evaluate a Jacobian at certain values? For example, I type: > > > x1,x2,x3 = var('x1 x2 x3') > > > f1(x1,x2,x3) = 3*x1 - cos(x2*x3) -

[sage-support] Re: sage vmware image visible from Internet

2009-09-25 Thread ma...@mendelu.cz
On 24 zář, 11:08, William Stein wrote: > For the record, here is the actual entry I use in /etc/httpd.conf: > > > RewriteEngine On > ServerName sagenb.org > ProxyPass/http://sagenb2:8000/ > ProxyPassReverse /http://sagenb2:8000/ > DocumentRoot / > >DefaultTyp

[sage-support] How to kill Sage started via nohup + owner of sage directory

2009-09-28 Thread ma...@mendelu.cz
Hello all, I established Sage server for our university (running in vmware, behind firewall, thanks for help from this group concerning port forwarding etc.) and now I have two more questions. 1. I start Sage in rc.local by nohup su sage -c 'cd /opt/sage&&./sage notebook.sage' &> /dev/null & How

[sage-support] Re: strange Permission denied problem

2009-09-29 Thread ma...@mendelu.cz
On 26 zář, 15:27, Thierry Dumont wrote: > ... strange only for me I hope. > I have similar problem. As I undesrstand, if the user sage runs program sage and user sageuser is in server_pool, then .sage directory should be writeable for sage, but not for sageuser. Right? Otherwise sageuser cen d

[sage-support] Ugly LaTeX formula inside picture

2009-09-30 Thread ma...@mendelu.cz
Dear sage users, I'm trying this piece of code ( http://alpha.sagenb.org/home/pub/16 ) x,y = var('x y') (x_min, x_max, y_min,y_max)=(0,2,0,4) f(x,y)=cos(y) A=plot_slope_field(f(x,y),(x, x_min, x_max), (y, y_min,y_max))+text (('$y\,^{\prime}=%s $'%latex(f(x,y))),(x_max,y_max), vertical_alignment=

[sage-support] How to simplify each term in a sum separately

2009-09-30 Thread ma...@mendelu.cz
Hello all, I am looking for the possibility how to simplify each term in an expression separately. Consider A=x/((x^2/y^2 + 1)*y) + arctan(x/y) I wish to get x*y/(x^2+y^2)+atan(x/y) , which can be produced in Maxima by map(fullratsimp, A) * simplify(A) gives A - no simplification * A.simp

[sage-support] Re: How to simplify each term in a sum separately

2009-10-01 Thread ma...@mendelu.cz
On 30 zář, 22:17, "ma...@mendelu.cz" wrote: > Hello all, I am looking for the possibility how to simplify each term > in an expression separately. > > Consider > A=x/((x^2/y^2 + 1)*y) + arctan(x/y) > > I wish to get  x*y/(x^2+y^2)+atan(x/y)  , which can be produced

[sage-support] Re: How to simplify each term in a sum separately

2009-10-01 Thread ma...@mendelu.cz
On 1 říj, 15:27, kcrisman wrote: > > Hope this helps, Yes, it helped. Thank you. Robert Marik > - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-uns

[sage-support] Re: How make notebooks use common base for relative urls? e.g. /foo/login and /foo/register?

2009-10-03 Thread ma...@mendelu.cz
On 3 říj, 08:37, William Stein wrote: > On Fri, Oct 2, 2009 at 10:34 PM, Mike Hansen wrote: > > > Hello, > > > On Sat, Oct 3, 2009 at 12:17 PM, Chris Seberino wrote: > > >> The wonderful Sage notebook uses relative urls like > >> /login and /register.  How make Sage notebook use relative urls w

[sage-support] desolve - my missunderstanding or a bug in Sage?

2009-10-03 Thread ma...@mendelu.cz
Dear sage users and developers trying to solve y''+4y=0 with initial conditions y(0)=0 and y'(0)=0 y=function('y',x) eq=diff(y,x,2)+4*y==0 desolve(eq,y,ics=[0,0,0]) sage returns y(0)*cos(2*x) and not 0 What is wrong? The help for the desolve command shows the same behavior on slighhtly more

[sage-support] Re: Error gnome launching SAGE

2009-10-03 Thread ma...@mendelu.cz
I do not understand french error messages, but what about http://localhost:8000 and http://127.0.0.1:8000 Is the sage notebook there? btw: the french messages are probably not from sage Robert Marik On 3 říj, 12:40, Michel Barthélémy Billard Sirakawa wrote: > PC emachine > Fedora 11 > Sage 4

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-03 Thread ma...@mendelu.cz
David Joyner wrote: > > > This is a known bug. Marshall and I tried to fix it during a SageDays in > > Seattle but failed to figure out the magic in Robert Bradshaw's code > > for desolve. I think it is "easy to fix for those who know how to fix it > > e

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-03 Thread ma...@mendelu.cz
in > > Seattle but failed to figure out the magic in Robert Bradshaw's code > > for desolve. I think it is "easy to fix for those who know how to fix it > > easily", but that rules me out:-) > > > On Sat, Oct 3, 2009 at 3:30 AM, ma...@mendelu.cz wrote: &g

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-03 Thread ma...@mendelu.cz
On 3 říj, 23:22, "ma...@mendelu.cz" wrote: > > I have not enought skill in Python, Sage, hg and related thinks. Is > there any person interested in the problem, which sould like to try > this? The following code works in Sage y=function('y',x) k

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-03 Thread ma...@mendelu.cz
> about Python or Mercurial either.  If you don't have a Trac account, > email William privately for one, and then you can log this as a ticket > and create a patch.  In the meantime the documentation for doing very > basic patches is pretty good in the developer's guide, which I think > is linked

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-05 Thread ma...@mendelu.cz
On 4 říj, 14:57, Marshall Hampton wrote: > For the first time dealing with some of these things the IRC channel > sage-devel is very helpful. It would be great if you could do this. > I am happy to review it, you can put me as a CC: or reviewer. I think > your solution sounds good. > > -Marsh

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-05 Thread ma...@mendelu.cz
I have one solution :) very very poor (really very poor) solution and from this reason I will not supply the patch yet. The method is to call ode2 again, now together with ic2 in one new call of Maxima. The (fixed) file is desolvers.py is at http://user.mendelu.cz/marik/temp/desolvers.py The

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-05 Thread ma...@mendelu.cz
On 5 říj, 23:14, calcp...@aol.com wrote: > Wow, this sounds like a big bug.  I will be using Sage quite a bit in a > Calculus I and II lab in the Spring.  Is this going to be huge problem? Do not think that this will be huge problem. You cal allwayas use Maxima instead Sage. In notebook you can

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-06 Thread ma...@mendelu.cz
New version (slightly cleaner and more readable the previous one and better in the sense that desolve with initial condition returns the right-hand side only) is at http://user.mendelu.cz/marik/temp/desolvers.py However - we still call ode2 two times when solving second order ode with initial con

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-06 Thread ma...@mendelu.cz
On 6 říj, 15:21, kcrisman wrote: ere. > > Thanks for taking the time to look into this! Thank you for your help. I posted the patch http://trac.sagemath.org/sage_trac/ticket/6479 which (I hope) fixes ic2 and bc2 commands. Results of tests have been updated and test related to bc2 has been add

[sage-support] Re: latex

2009-10-06 Thread ma...@mendelu.cz
Hm, this is my Sage 4.1.1 a1=-(sqrt(13)-1)/2 latex(a1) output is -\frac{1}{2} \, \sqrt{13} + \frac{1}{2} You may have old version of Sage latex(-{{\sqrt[13]-1\over[2}}) produces error Robert Marik On 6 říj, 21:10, Mikie wrote: > If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1

[sage-support] Re: latex

2009-10-06 Thread ma...@mendelu.cz
er.  I am using 3.4. > When I assign it to a variable it works as below.  If you would try > a1=maxima.solve(x^2-x-3,x) > R1=a1[0] > R3=maxima.rhs[R1] > latex(R3) > produces -- {{1-\sqrt{13}}\over{2}} > not good > > On Oct 6, 1:46 pm, "ma...@mendelu.cz" wrote: &

[sage-support] Re: Slowness when trying to serve multiple notebooks from same server.

2009-10-06 Thread ma...@mendelu.cz
This is very very small RAM for 7 sage notebooks I think that this has been dicussed here or in sage-edu in January Robert Marik On 7 říj, 01:00, Chris Seberino wrote: > I have an Ubuntu 9.04 Xen virtual machine with 350 Mb RAM. > (from linode.com hosting services) > > I tried to have 7 people

[sage-support] Re: Slowness when trying to serve multiple notebooks from same server.

2009-10-07 Thread ma...@mendelu.cz
On 7 říj, 01:19, "ma...@mendelu.cz" wrote: > This is very very small RAM for 7 sage notebooks > > I think that this has been dicussed here or in sage-edu in January > Btw. where are posts from January? They seem to be deleted from this group. Are they deleted? Or is the

[sage-support] Re: Slowness when trying to serve multiple notebooks from same server.

2009-10-07 Thread ma...@mendelu.cz
On 7 říj, 13:36, William Stein wrote: > > http://groups.google.com/group/sage-edu/topics?start=80&sa=N Sorry for missunderstanding, I mean sage-support, seems to start in October http://groups.google.com/group/sage-support/topics?start=1 Robert --~--~-~--~~~---~--

[sage-support] Re: Slowness when trying to serve multiple notebooks from same server.

2009-10-07 Thread ma...@mendelu.cz
On 7 říj, 13:42, William Stein wrote: > On Wed, Oct 7, 2009 at 4:40 AM, ma...@mendelu.cz wrote: > It's October right _now_. The archive doesn't start in October, it ends in > October. Oops, sorry :) So another threat related to memory and Sage in educati

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-07 Thread ma...@mendelu.cz
Well, I think that I fixed this issue and added some more features * Sage allows to solve Lagrange, Clairot and some other equations. however, no IVP is allowed if Maxima outputs pair [general_solution, singular_solution] since this is more delicate thing, I think. * Sage has not the bug just di

[sage-support] Re: substitution

2009-10-07 Thread ma...@mendelu.cz
On 7 říj, 16:21, Ranjit wrote: > I'm trying to figure out how to do a simple substitution. I've the > following code: > > var('r beta beta_0 R a h') > psi=function('psi',r) > sigma=function('sigma',r) > > H_0=function('H_0',r) > > H_grad = lambda psi : (1/2)*(beta/beta_0)*R^2*(psi.diff(r))^2 >

[sage-support] Re: help with plot3D

2009-10-07 Thread ma...@mendelu.cz
* Use plot3d * typo error mp2 versus m2 and mp1 versus m1 ? This works. var('t1 t2') m1 = 0.33; m2 = 0.39; sap = 1.2; saf = 0.4; H = 10; E(t1,t2)= -1*m1*H*sin(t1) - m2* H * sin(t2)+sap * cos(t2-t1)-saf * sin (t1) plot3d(E,(t1,-5,5),(t2,-5,5)) R.M. On 7 říj, 23:09, SG wrote: > Hi, > I am tryin

[sage-support] Re: substitution

2009-10-08 Thread ma...@mendelu.cz
perhaps, no subst is necessary: var('r beta beta_0 R a h') psi=function('psi',r) sigma=function('sigma',r) H_0=function('H_0',r) H_grad = lambda psi : (1/2)*(beta/beta_0)*R^2*(psi.diff(r))^2 H_0(psi) = -(1/2)*(beta/beta_0-1)*psi^2 + beta*a*psi^4 + beta*h*psi H_1=H_grad((1/R)*(beta_0/beta)^(1/2

[sage-support] Re: latex

2009-10-08 Thread ma...@mendelu.cz
> '${x}^{2}  - x - \\frac{3}{2}=0$' > '$x^2-x-{{3}\\over{2}}$'<<<<<<<<< the problem > x^2-x+1/4 > x^2-x+1/4 > (2*x-1)^2/4 > 7/4 > [x=-(sqrt(7)-1)/2,x=(sqrt(7)+1)/2] > -- > Input --val1=CSquare(x^2-x-3/2);val1[0];val1[1];val1[2];

[sage-support] Re: substitution

2009-10-08 Thread ma...@mendelu.cz
On 8 říj, 19:41, Ranjit wrote: > > does not. So I guess there's an upper limit to the number of > operations that the expression being replaced can have to work in subs > (). Perhaps true, but IMHO very risky guess which is not true, if pattern matching in Maxima is behind the scene when doing

[sage-support] Re: Force quadrature rather than symbolic integration?

2009-10-12 Thread ma...@mendelu.cz
Perhaps somebody knows how is this supported in Sage. I know only how to get the answer via maxima and http://maxima.sourceforge.net/docs/manual/en/maxima_20.html#Item_003a-Introduction-to-QUADPACK sage: expr=sin(x)/x sage: ex=expr._maxima_() sage: print ex.quad_qags(x,1,2,).sage() sage: ex.quad_

[sage-support] Re: Force quadrature rather than symbolic integration?

2009-10-12 Thread ma...@mendelu.cz
numerical_integral? On 12 říj, 13:01, "ma...@mendelu.cz" wrote: > Perhaps somebody knows how is this supported in Sage. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send e

[sage-support] Re: How group terms in an expression? e.g. all terms containing x or y

2009-10-12 Thread ma...@mendelu.cz
(3*x + m*x + a*y+b*y ).collect(x).collect(y) On 12 říj, 19:20, Chris Seberino wrote: > How group terms in an expression? > > e.g. How group terms with x and y in: > >               3*x + m*x + a*y+b*y > > to get: > >               (3 + m)*x + (a + b)*y ?? > > cs --~--~-~--~~-

[sage-support] Re: How group terms in an expression? maybe a bug ?

2009-10-12 Thread ma...@mendelu.cz
no error with 4.1.2.rc0 R.M. [ma...@um-bc201 /opt/sage-4.1.2.rc0]$ ./sage -- | Sage Version 4.1.2.rc0, Release Date: 2009-09-30 | | Type notebook() for the GUI, and license() for information.| --

[sage-support] implicit plotting

2009-10-13 Thread ma...@mendelu.cz
Hello all, is there any other possibility how to plot implicit function than implicitplot? I do not like implicitplot too much, since it is in fact countourplot and it is not easy to set the color (for example). Thanks Robert Marik --~--~-~--~~~---~--~~ To post to

[sage-support] Re: implicit plotting

2009-10-13 Thread ma...@mendelu.cz
On 14 říj, 05:51, Jason Grout wrote: > > implicit_plot(x^2+y^2==1, (x,-2, 2), (y,-2, 2), cmap=["red"]) > Thanks, I missed this example. I tried rgbcolor and color option and then tried blindly various predefined colormaps. Robert Marik --~--~-~--~~~---~--~~ To p

[sage-support] Re: How make worksheet run some code at startup like var("a b c d ... z") ??

2009-10-13 Thread ma...@mendelu.cz
On 14 říj, 06:20, Jason Grout wrote: > Chris Seberino wrote: > > How make worksheet run some code at startup? > > > e.g. var("a b c d ... z") ? > > > Currently my students need to evaluate var("a b c ... z") in every > > worksheet I give them.  It would be nice to hardcode this into > > workshe

[sage-support] How to approximate eigenvalues of matrix? n() does not work in this case.

2009-10-14 Thread ma...@mendelu.cz
Hello all trying approximate numerically eigenvalues of a matrix I get Error sage: A=matrix(((0,1),(-1,0))) sage: B=A.eigenvalues()[0] sage: n(B) Traceback (click to the left for traceback) ... ValueError: Cannot coerce algebraic number with non-zero imaginary part to algebraic real I guess, I

[sage-support] Re: echelon_form of matrix with a symbol

2009-10-15 Thread ma...@mendelu.cz
On 16 říj, 05:45, William Stein wrote: > On Thu, Oct 15, 2009 at 7:45 PM, Matt Rissler wrote: > > > Basically, I'm having student look for the x that makes the matrix > > singular, or the columns linearly dependent, or ...  However Sage > > behaves like so: > > > sage: A=matrix([[0,1,1],[2,2,-2]

[sage-support] Re: What is the default font in Sage notebooks? Possible to hardcode a new default?

2009-10-16 Thread ma...@mendelu.cz
I think that you can use custom css file in your .sage directory. I do not remember he name of this file, try to seach this group, it has been dicussed - here or in sage-devel Robert Marik On 16 říj, 00:21, Chris Seberino wrote: > On Oct 15, 2:21 pm, William Stein wrote: > > > Are you asking

[sage-support] Re: plot(from server)

2009-10-16 Thread ma...@mendelu.cz
On 16 říj, 06:28, Mike Hansen wrote: > How do _you_ detect when the session is over? Your code needs to be > responsible for detecting when the session is over and deleting the > PNGs. You can also use sufficiently random and long names in temp directory and in cron daemon clean this director

[sage-support] Re: slope function

2009-10-16 Thread ma...@mendelu.cz
On 16 říj, 21:32, Laurent wrote: > a = 1 > b = 2 > c = 3 > d = 8 > print "\\frac{",a,"-",b,"}{",c,"-",d,"}=",(a-b)/(c-d) perhaps print "\\frac{",a,"-(",b,")}{",c,"-",d,"}=",(a-b)/(c-d) if b<0 Robert --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: Defining a function including numerical_integral

2009-10-17 Thread ma...@mendelu.cz
On 17 říj, 23:06, Laurent wrote: > My aim is to do > solve(g(x)=0.5) > for example. > > Any ideas ? I have no idea how to solve your question, but even if you solve it, the command solve will not work in this kind of problem. You should use some command which solves numerically. Something lik

[sage-support] Re: Sharing worksheets (not via a server)?

2009-10-20 Thread ma...@mendelu.cz
On 19 říj, 21:19, Simon King wrote: > By the way, does "export to" (say, to PDF) exist in the Notebook? Im working on a script which can be used to format worksheets from sws filws via pdflatex. But do not expect too much! Will work for some basic html between cells, not too long lines in inpu

[sage-support] Re: How to change the config of sage

2009-10-23 Thread ma...@mendelu.cz
Probably depends not on Sage but on your OS. Customize file associtations in your file manager. Or what aoubt to save picture in native format and use convertcommand to convert into gif or anything else. Robert On 23 říj, 12:34, wxu...@sohu.com wrote: > Hi all, > > when I use sage.4.0.2 to plot

[sage-support] Re: How to use a previous result in a current evaluation without copy/paste

2009-10-29 Thread ma...@mendelu.cz
On 28 říj, 23:46, Erik wrote: > The first two solutions did what I intended. The 3rd one did not, but > I may have erred. > > Is the use of "_" documented anywhere? It is on one of Sage referrence cards Robert --~--~-~--~~~---~--~~ To post to this group, send e

[sage-support] convertor Sage -> TeX -> PDF

2009-10-29 Thread ma...@mendelu.cz
Hello all, the conversion into PDF has been discussed several times here. One option is to print into a PDF file. This is another possibility: I wrote for myself a simple converter from Sage worksheets to PDF via PDF LaTeX You can see the outputs in the bulletted list at http://user.mendelu.cz

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread ma...@mendelu.cz
On 28 říj, 15:13, David wrote: > Things are looking up here. I think I'm having some firewall issues > with high port numbers. Is there any way to allow sage to open port > 443 without running as root? This would be easier than trying to get > the computer center to open up a new port campus-wi

  1   2   3   >