Qalculate / libqalculate

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

where operator using a saved equation? #710

Open smm9509 opened 1 week ago

smm9509 commented 1 week ago
> my_equation := "a" = 2

  save(a = 2, my_equation)

  a = 2

> "a" + 5 where my_equation

  a + 5 = a + 5

> "a" + 5 where "a" = 2 #expected answer

  a + 5 = 7

I want to substitute using the solution found earlier in the process and saved. Should also work with the output of solve/multisolve.

(Also, the documentation for the where operator has been elusive until version 5.0.0, I didn't know it existed until it showed up in the release notes. How to discover qalc features easier?)