Re: [sage-support] Re: sage good gui

2013-04-26 Thread Dmitry Shkirmanov
The next version of mathjax does line breaking. I don't think we've upgraded yet: I suppose that i have to wait the next SAGE release? wxMaxima has a lisp script that outputs MathML. I don't think we do anything along those lines. It would be nice if the output would use a mathml (perhaps wit

Re: [sage-support] Re: sage good gui

2013-04-26 Thread Dmitry Shkirmanov
26, 2013 8:47:25 AM UTC+1, Dmitry Shkirmanov wrote: Hello, list. I used to use Sage a couple of years ago but moved to the Maxima. The reason for the moving to the maxima was that Sage could not split a long symbolic output into several lines and showed this output as

[sage-support] sage good gui

2013-04-26 Thread Dmitry Shkirmanov
Hello, list. I used to use Sage a couple of years ago but moved to the Maxima. The reason for the moving to the maxima was that Sage could not split a long symbolic output into several lines and showed this output as one long line (i used browser based gui). Such kind of output is absolutely u

[sage-support] IOError: [Errno 2]

2011-08-02 Thread Dmitry Shkirmanov
Hello, i am using the latex's breqn package to show long outputs(in notebook). System is debian squeeze, version of Sage is 4.7. I typed %latex \begin{dmath*} \sage{latex(numDet)} \end{dmath*} and Sage returned: Traceback (most recent call last): File "", line 1, in File "_sage_input_10.py"

[sage-support] function of vector variables

2011-06-21 Thread Dmitry Shkirmanov
Hello, i think that my question is simple one, but i have not found answer in the reference manual. I need a function of vector variables. For example: var("x1,x2,x3") x=vector([x1,x2,x3]) Is it possible to define a function of the vector variable "x", something like this: f(x)=sum(x[i]*x[i]for i i

[sage-support] Re: output cell in notebook is to little (vertically) for typeset output

2011-05-18 Thread Dmitry Shkirmanov
> Hi, the output cell I get is too little (vertically) for the size of > the output and I can't see it completely. This happens sometimes when > the output is long and only when I ask for the typeset version of the > output. Hello, as far as i know Sage can not divide output into lines. You can

[sage-support] Re: Bug in show() function?

2011-04-28 Thread Dmitry Shkirmanov
> Not sure what's going on, but it seems that alpha.sagenb.org is actually > currently at an older version than normal sagenb.org , just for your > information... Just the same behaviour i encountered in Sage 4.6.2 on my laptop. -- To post to this group, send email to sage-support@googlegroups.

[sage-support] Bug in show() function?

2011-04-27 Thread Dmitry Shkirmanov
Hello, list, look please at the worksheet http://alpha.sagenb.org/home/pub/121/ It seems that the output of show(bb) is wrong, there is spurious factor 1/4 in the second term. In this worksheet in first cell i typed: reset() forget() var("r,ksi,a3,A") aa=-r^2*(ksi+a3)+I*sqrt(A)*r bb=-(ksi+

[sage-support] Re: exp(I*x) --> cos(x)+I*sin(x)

2011-03-27 Thread Dmitry Shkirmanov
> You must load the file rewrite_xxx attached to this wiki-page. Thanks for help, it works. But i think that It wouldn't be such a bad idea to mention at wiki-page that one must load the file rewrite_xxx. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: exp(I*x) --> cos(x)+I*sin(x)

2011-03-25 Thread Dmitry Shkirmanov
> >      return (t.real_part()+I*t.imag_part()).simplify_trig() > Thank you very much, i works. -- 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 ht

[sage-support] exp(I*x) --> cos(x)+I*sin(x)

2011-03-25 Thread Dmitry Shkirmanov
Hello, list, i need a function that can exp(I*x) --> cos(x)+I*sin(x) At http://wiki.sagemath.org/symbolics/rewrite i found the rewrite function. But this function is not mentioned in Sage reference manual, and Sage 4.6.2 does not know this function: NameError: name 'rewrite' is not defined How i ca

[sage-support] Re: width of the Sage notebook input cell

2011-02-27 Thread Dmitry Shkirmanov
input cell can not be carried over to the next line and comes out of view. Is it possible to change such behaviour? >>> >>> Can you be more specific? In my browser at least it just carries over >>> to the next line, spaces or not, commas or not. Maybe give us the >>> example, what brow

[sage-support] Re:width of the Sage notebook input cell

2011-02-26 Thread Dmitry Shkirmanov
> > input cell can not be carried over to the next line and comes out of > > view. Is it possible to change such behaviour? > > Can you be more specific? In my browser at least it just carries over > to the next line, spaces or not, commas or not. Maybe give us the > example, what browser, etc.

[sage-support] width of the Sage notebook input cell

2011-02-25 Thread Dmitry Shkirmanov
Hello list, i found that a long expression without spaces in the sage input cell can not be carried over to the next line and comes out of view. Is it possible to change such behaviour? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send ema

[sage-support] Re: is there assumptions in solve()?

2011-02-19 Thread Dmitry Shkirmanov
> sage: expr2 = sqrt(a^2-b^2) > sage: expr2.full_simplify() > sqrt(a - b)*sqrt(a + b) I am sorry, there is a mistake. wrong answer gives # var("a,b,c,d,f") assume(a-b<0) expr=sqrt((a^2-b^2)*f) expr2=expr.full_simplify() show(expr2) # -- To post to this group, send email to sage-support@googlegro

[sage-support] Re: is there assumptions in solve()?

2011-02-19 Thread Dmitry Shkirmanov
> sage: a=2; b=3; f=5 > sage: assert(a-b<0) > sage: sqrt(a-b)*sqrt(a+b)*sqrt(f) > 5*I > sage: sqrt((a^2-b^2)*f) > 5*I > sage: Of course, you are right. But # sage: var("a,b,c,d,f") (a, b, c, d, f) sage: expr=sqrt((a-b)*(c+d)) sage: assume(a-b<0) sage: expr.full_simplify() sqrt(-c - d)*sqrt(-a + b)

[sage-support] Re: is there assumptions in solve()?

2011-02-18 Thread Dmitry Shkirmanov
> After you get the output of the solve(), you can simplify() it to send > it back to Maxima, and that might work to get the assumptions > recognized. I tried it and received wrong answer. Let's consider for example the code: # reset() forget() var("a,b,c,d,f") assume(a-b<0) expr=(a^2-b^2)*f expr

[sage-support] is there assumptions in solve()?

2011-02-18 Thread Dmitry Shkirmanov
I asked Sage to solve the system of the equations: # var("pasquare,pbsquare,costhetasquare,Ea,Eb,ma,mb,mc") assume(Ea>ma) solution=solve([pasquare*pbsquare*costhetasquare==((-ma^2-mb^2+mc^2)/2 + Ea*Eb)^2, pasquare==Ea^2-ma^2, pbsquare==Eb^2- mb^2],pasquare,pbsquare,Eb) # But there is the factor sqr

[sage-support] problem with solve()?

2011-02-17 Thread Dmitry Shkirmanov
Hello, list, i am solving the simple system of the equations: # var("pa,pb,costheta,Ea,Eb,ma,mb,mc") solve([pa*pb*costheta==(-ma^2-mb^2+mc^2)/2 + Ea*Eb, pa==sqrt(Ea^2- ma^2), pb==sqrt(Eb^2-mb^2)],pa,pb,Eb) # Sage replies: # TypeError: unable to make sense of Maxima expression # what is wrong? --

[sage-support] braces in output of latex() command

2011-02-16 Thread Dmitry Shkirmanov
Hi everyone, i use Sage for working with big expressions. To receive observable output i use latex's package breqn that can automatically divide the expression into several lines. But there is the problem with latex() command. For example here is the code(in notebook): # var("a,b,c,d,f,g") expr=

[sage-support] Re: Divide the output of show() on several lines

2011-01-19 Thread Dmitry Shkirmanov
I found that the output can be automatically divided on several lines by latex with help of package breqn. For example here is the code: # var('c') c=0 for j in range(100): a=x^j d=c c=d+a pr=latex(c) latex.add_to_preamble("\usepackage{breqn}") # I pressed shift+enter and typed in the

[sage-support] Divide the output of show() on several lines

2011-01-14 Thread Dmitry Shkirmanov
Hello, i want to divide the output of show() function(in notebook) on several lines. Let's suppose that one has variable "a", a=1+x+x^2+... +x^100. After one types show(a), Sage returns one long line. As this line is long, one need to scroll right to see whole line. It is more convinient to divide

[sage-support] Re: search function in notebook documents

2011-01-14 Thread Dmitry Shkirmanov
I tried to open search page on my debian lenny with browsers iceweasel(mozilla firefox) and kazehakase. It gives same mesage as in your case, while JavaScript is enabled. I do not know why this happens. But you can use search function on http://sagemath.org/doc/ -- To post to this group, send

[sage-support] Re: Is there tensors in sage?

2011-01-13 Thread Dmitry Shkirmanov
I found that it is easy to construct such object as a matrix inside a matrix. For example here is the code: # m00=matrix(SR,2,2) m01=matrix(SR,2,2) m10=matrix(SR,2,2) m11=matrix(SR,2,2) t=matrix([[m00,m01],[m10,m11]]) # # now one can assign elements of tensor t in cycle, for example # var('v10,v11,

[sage-support] Is there tensors in sage?

2011-01-12 Thread Dmitry Shkirmanov
Hello, i need the object, that can be called by indication of his indeces, and number of this indeces is more than 2. For example in Sage there is class vector: # v=vector([a,b,c]) # where a,b,c are sumbols. One can call element of this vector by # v[i] # where i=0,1,2. Also exist class matrix: # m

[sage-support] Re: Assign the elements of matrix in the cycle

2011-01-12 Thread Dmitry Shkirmanov
Thanks! -- 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 URL: http://www.sagemath.org

[sage-support] Assign the elements of matrix in the cycle

2011-01-12 Thread Dmitry Shkirmanov
Hello, i need to assign the elements of matrix in the cycle, for example here is the code (in a notebook): # var('a,b,c,d,e,f') v1=vector([a,b,c]) v2=vector([d,e,f]) v3=matrix(1,3) j=0 while j<=2: v3[0,j]=v1[j]*v2[j] j=j+1 print(v3) # I expect that it should give (a*d,b*e,c*f) but Sage say

[sage-support] Re:Re: Is there symbolic sum in Sage?

2011-01-11 Thread Dmitry Shkirmanov
>sage: sum(( m[0,j] * v[j] for j in range(3) ))>a^2 + b^2 + c^2 Thank you very much. -- 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

[sage-support] Is there symbolic sum in Sage?

2011-01-11 Thread Dmitry Shkirmanov
Hello, i need to sum elements of matriсes and vectors, for example here is code (in notebook): # var('a,b,c,d,e,f,j') v=vector([a,b,c]) m=matrix([[a,b,c],[d,e,f]]) sum(m[0,j]*v[j],(j,0,2)) # I expect that it should result in a^2+b^2+c^2, but it gives "TypeError: cannot evaluate symbolic expressi