Dear Andy,

Thanks for your report.

Note that this result is not wrong with the extra parenthesis. Perhaps
a bit annoying.

SageMath is developed by volunteers and not perfect. You are very
welcome to contribute to its enhancement

   http://doc.sagemath.org/html/en/developer/

Best
Vincent

Le 02/09/2018 à 16:42, Andy Howell a écrit :
Hello,

I'm not sure if this is a bug or not. I'm just starting to learn
differential equations. The latex returned for 'h' below has superfluous
  () around the '-x' exponent.

y = var('y')
Plot1=plot_slope_field(2-y,(x,0,3),(y,0,20))
y = function('y')(x) # declare y to be a function of x
h = desolve(diff(y,x) + y - 2, y, ics=[0,7])
print expand(h)
print latex(expand(h))

5*e^(-x) + 2
5 \, e^{\left(-x\right)} + 2

It looks better with out the extra \left( and \right):

5 \, e^{-x} + 2

This is with 8.4beta2

Thanks,

Andy


--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to