PaddiM8 / kalker

Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
https://kalker.xyz
MIT License
1.59k stars 70 forks source link

Support × and ÷ #35

Closed abrudz closed 2 years ago

abrudz commented 3 years ago

Since you allow Unicode symbols, it'd be nice to use × and ÷ for multiplication and division, with tab completion on * and / too.

PaddiM8 commented 3 years ago

Indeed. More symbols like this would make it more readable. Also things like eg. atan to tan⁻¹ and such.

abrudz commented 3 years ago

Just watch out, as traditional mathematical notation is inherently ambiguous.

For example, f ²(x) is f(f(x)) but sin² x is (sin x)².

So if g(x)=sin x, then is g ²(x) equal to sin sin x or (sin x

PaddiM8 commented 3 years ago

Just watch out, as traditional mathematical notation is inherently ambiguous.

For example, f ²(x) is f(f(x)) but sin² x is (sin x)².

So if g(x)=sin x, then is g ²(x) equal to sin sin x or (sin x

Wow, I see, thank you! I will have to do some reading about this kind of things then, to make sure it makes sense, and perhaps document some things a bit more.

sin²x syntax is definitely something I'll want to implement, forgot about that.

PaddiM8 commented 2 years ago

Multiplication sign, division sign, arc functions, lowered digits, and cbrt now have unicode symbols!