Qalculate / libqalculate

Qalculate! library and CLI
https://qalculate.github.io/
GNU General Public License v2.0
1.88k stars 151 forks source link

Dsolve : Unable to solve diff(y) = -y #623

Closed kernelb00t closed 4 months ago

kernelb00t commented 9 months ago
> dsolve(diff(y) = -y)

  error: No differential equation found.
  dsolve(diff(y) = (−y)) = dsolve(y + diff(y) = 0)

But : image

Is it me not kowing how dsolve is working? Or is it Dsolve just behaving weirdly?

Computer :

hanna-kn commented 9 months ago
> dsolve(diff(y, x) = −y)

  dsolve(diff(y, x) = (−y)) = C / e^x ≈ 0.3678794412^x × C

Note however that version 4.9.0 is unable to isolate x because C is not assumed real (see https://github.com/Qalculate/libqalculate/issues/617).