Qalculate / libqalculate

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

Words as function Variables #655

Closed Angry0Fellow closed 6 months ago

Angry0Fellow commented 6 months ago

The function tool becomes very limiting when you start making more complicated functions. For example if I want to make a function that Calculates the average power in a line as you whip it around with. $P_{av}=\sqrt{F\mu}A^2\omega^2$ as it is now when I would do something like function

function Pav sqrt(\x\y)\z^2\A^2

But if I ever forget the variables represent The Variable names do little to help me Remember. It would be great if I could do something like ...

function Pav sqrt(\{Tension*}\{ Liner Density})\{angular frequency}^2*\{amplitude}^2
Angry0Fellow commented 6 months ago

I realized I din not understand the Function command at all. Ill close this until I'm confident there is no way to do what I want.