Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Browsing all 6 articles
Browse latest View live

Comment by kcrisman for The simplest way is just to use the subs (or...

@Ondra: Your original syntax had that problem too. It's hard to see without formatting, so I will put this in an answer, but @benjaminfjones has answered your question :)

View Article



Comment by Ondra for The simplest way is just to use the subs (or substitute)...

works, thanks! :), *but* sage gives: __main__:4: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you...

View Article

Answer by benjaminfjones for I have an expression like uR(t) == 3*iL(0) +...

The simplest way is just to use the `subs` (or `substitute`) method of your symbolic expression like so: sage: t = var('t') sage: uR = function('uR', t) sage: iL = function('iL', t) sage: uC =...

View Article

Comment by Ondra for Expanding on my remark:Functions defined in the way...

thanks a lot! :)

View Article

Answer by kcrisman for I have an expression like uR(t) == 3*iL(0) + uC(0)/2 -...

Expanding on my remark: Functions defined in the way above don't say they have just one variable for input (their expression could, in theory, have some constants like `c` or `a` that shouldn't be...

View Article


Substituting function value in an expression

I have an expression like `uR(t) == 3*iL(0) + uC(0)/2 - 4` how can I substitute for `iL(0)` and `uC(0)`, if I'm given, that `iL(0) = 0` and `uC(0) = 0`. `uR`, `iL`, `uC` are a functions of var `t`: t =...

View Article
Browsing all 6 articles
Browse latest View live


Latest Images