Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Browsing latest articles
Browse All 4 View Live

Comment by keko for Instead of "assigning" a value to $\partial g/\partial x...

That definitely did the work! Nevertheless, is there a way I can set the value of ∂g/∂x|x=0 beforehand, so that it automatically does the substitution ∂g/∂x|x=0 = 10 every time it finds that expression?

View Article



Comment by rburing for Instead of "assigning" a value to $\partial g/\partial...

Maybe it's possible by specifying a `derivative_func` in the definition of `g`, returning another [symbolic...

View Article

Answer by rburing for I have a symbolic function $g(x,y)$, which depends on...

Instead of "assigning" a value to $\partial g/\partial x \vert_{x=0}$ beforehand, it's easier to make the substitution afterward: sage: der_f.subs(x==0).subs(diff(g,x).subs(x==0) == 10) 12 Or in steps,...

View Article

Assign value to symbolic function?

I have a symbolic function $g(x,y)$, which depends on the variables $x$ and $y$. Using this, I define the function $f(x,y)$ as: \begin{equation} f(x,y) = g(x,y) + 2x. \end{equation} If I calculate the...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images