ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 26 Nov 2015 07:32:15 -0600Piecewise function of several variables and how to display ithttp://ask.sagemath.org/question/31087/piecewise-function-of-several-variables-and-how-to-display-it/Hi,
I need to define a piecewise function of several variables. For a function of one variable I would use probably `Piecewise`. I would like to work with a function G of two variables t and s that is of this form:
def G(t,s):
if (t < s):
return 1
else:
return 0
Although this works, I would like to have a nice displaying of this function, like a function generated by `Piecewise` does. Is there another way how to define this function?
janThu, 26 Nov 2015 07:32:15 -0600http://ask.sagemath.org/question/31087/Declare arithmetic with formal variableshttp://ask.sagemath.org/question/10863/declare-arithmetic-with-formal-variables/I want to create variables in SAGE and and declare arithmetic relations between them. For example, it is easy enough to declare that x1, ..., xn and y1, ..., yn be variables. Is there a way to state that
xi*xj = 0 (in the ring of polynomials, if necessary)
or that
x1 < y1 < x2 < y2 < ...?
Zach HFri, 27 Dec 2013 17:50:04 -0600http://ask.sagemath.org/question/10863/symbolic function from R^m to R^nhttp://ask.sagemath.org/question/10283/symbolic-function-from-rm-to-rn/Hi,
Is it possible to define functions from $\mathbb{R}^m$ to $\mathbb{R}^n$ in Sage? And then, compose them, compute their jacobian (see also this [previous post](http://ask.sagemath.org/question/2278/)), use them for change of variables, ...vdelecroixWed, 26 Jun 2013 06:05:03 -0500http://ask.sagemath.org/question/10283/