Forums before death by AOL, social media and spammers... "We can't have nice things"
|    sci.math.symbolic    |    Symbolic algebra discussion    |    10,432 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,115 of 10,432    |
|    Nasser M. Abbasi to Nasser M. Abbasi    |
|    Re: Julia is the future of RUBI !    |
|    09 Mar 21 20:51:51    |
      From: nma@12000.org              On 3/4/2021 4:29 PM, Nasser M. Abbasi wrote:       >       > Only thing so far I found which I did not like too much, is       > when taking derivative of expression Z w.r.t say x, one       > has to define the derivative part w.r.t. x, on a separate line,       > then apply it on the expression on next line. Like this:       >       > ============       > @variables x y;       > D = Differential(x)       > ....few line later one can do....       > D(y) # Differentiate y wrt. x       > ==========       >       > One can't write on same line       >       > diff(y(x),x)       >       > as normally with say Maple or Mathematica, etc... which       > for me is more clear since one sees the expression and the       > variable x, on same line. May be there is a way around       > this.              Ok, figured it out       ==========================       julia> using Symbolics;       julia> @variables x y;       julia> y=x^2*sin(x);       julia> expand_derivatives(Differential(x)(y))                     cos(x)*(x^2) + 2x*sin(x)       ============================              So        diff(y,x)              translates to               expand_derivatives(Differential(x)(y))              --Nasser              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca