This <https://doc.sagemath.org/html/en/tutorial/tour_functions.html> should enlighten you...
HTH, -- Emmanuel Charpentier Le vendredi 31 mars 2017 18:22:24 UTC+2, saad khalid a écrit : > > Hey everyone: > > I'm just looking for the documentation for properly defining functions on > Sage. As far as I can tell, there are several ways to define functions. I > think you can define functions as sage objects, and then functions as > python functions, and then also lambda functions through python. I don't > really understand the difference between the former two options, or the > difference in how to create them. I also don't understand if they do things > differently. Is there some documentation on properly defining functions. > For example, what is the difference between: > > var('x') > f(x) = x^2 #just an eg function > and > > var('x') > f = x^2 > > Moreover, what are the implications or possible problems with: > > var('x,y') > f(x) = x^2*y > > Thanks! I tried googling for this but I couldn't find a clear answer > anywhere. > > > -- 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.