In addition to what others have written in this thread, there is yet another potential confusion, stemming from such data types as elements of polynomial rings. E.g.
sage: R.<x,y>=QQ[] sage: f=2*x*y-5 sage: type(f) <type 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'> shows that f here is neither a python function nor a symbolic expression. Although you can convert it to the latter, as follows: sage: SR(f) 2*x*y - 5 sage: type(SR(f)) <type 'sage.symbolic.expression.Expression'> And there are more cases like this in Sage's interfaces to optimisation software. HTH, Dima On Wednesday, August 10, 2016 at 7:37:18 PM UTC+1, Todd Zimmerman wrote: > > Is there any significant difference in SageMath between defining a > function using lambda vs. defining it using 'def ...:'? Both situations > result in functions that can be differentiated, integrated, etc so I'm not > sure if there is any functional difference between the two methods in > SageMath. > > -Todd > > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.