Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

Function with y, instead of x issue #280

Closed murilo-s closed 1 month ago

murilo-s commented 2 months ago

Hi,

I'm getting a warning of undeclared variable when using a f(y) function instead of f(x) function. But the weird part is that it is plotting correctly. See image:

image

Thanks.

Proektsoftbg commented 2 months ago

Hi!

This is not related to plotting. It is because y_sup is not declared explicitly, but created in the background by the $Sup method during the calculations. However since the code highlighting does not actually calculate the code but just scan the text, it cannot detect it. Please ignore it.

murilo-s commented 2 months ago

Thanks for your quick response Ned!

But this warning doesnt happen when using x_sup. So it is not clear why i get the warning if I use a different variable.

image

Proektsoftbg commented 2 months ago

Aha! Thank you, i see. Maybe I manually set the highlighter to set x_sup as declared when meets $Sup. Probably it does not work with other variables. I will take a closer look.

murilo-s commented 2 months ago

Great, thanks!

Proektsoftbg commented 1 month ago

Hi!

This is now fixed in version 6.2.3: https://github.com/Proektsoftbg/Calcpad/releases/tag/v6.2.3

Cheers! Ned

murilo-s commented 1 month ago

Awesome, Ned!

Thanks!