Missing close brace

asked 2014-12-04 22:56:05 +0100

martov gravatar image

updated 2014-12-05 01:10:50 +0100

hi!

Im getting "Missing close brace" when I try to prettyprint an expression on sage cloud.

the expression Im trying to prettyprint using show() is the result of using solve() on an equation system and saving it in the variable "a", I can see the contents of "a" but I can't prettyprint it.

image description

thanks!

EDIT:

show (a[0]) works great for showing the first element, but I still cant get the whole thing to show.

here is the code that produces the error

  • f=4(x^3-x/4)^3+4x-4*(x^3-x/4)
  • solve (f==0,x)
  • show (solve (f==0,x))

here is a pic image description

edit retag flag offensive close merge delete

Comments

I also tried looking for show() in the documentation to see if I could find any warnings, considerations or limitations but I could not find anything :c

martov gravatar imagemartov ( 2014-12-04 22:57:51 +0100 )edit

What happens if you do show(a[0]) to show the first entry in the list a? It also might help if you include the code used to produce the error so other people can try it out (not just a screen capture, but the actual code as text).

John Palmieri gravatar imageJohn Palmieri ( 2014-12-04 23:52:14 +0100 )edit

show (a[0]) works great! here is the code that produces the error

f=4(x^3-x/4)^3+4x-4*(x^3-x/4) solve (f==0,x) show (solve (f==0,x))

thanks!

martov gravatar imagemartov ( 2014-12-05 01:02:41 +0100 )edit

Your code works for me without error (including show(solve(f==0, x))), well, except I have to make some changes like replacing 4x with 4*x. What version of Sage are you using? Maybe you need to update, because maybe you're running into an old bug which has been fixed.

John Palmieri gravatar imageJohn Palmieri ( 2014-12-05 18:10:38 +0100 )edit