makaip / mathematix

A nodeblock-based math webapp.
https://makaip.github.io/mathematix/
GNU General Public License v3.0
4 stars 0 forks source link

Log function can sometimes graph asymptotes #24

Closed Valenciola closed 7 months ago

Valenciola commented 7 months ago

As you can see in these pictures, Mathematix can correctly graph the function log base 5 of x, minding the asymptote at x = 0.

Desmos log-base5ofx Mathematix-logbase5ofx

However, for the function log base x of 5, Mathematix also graphs the asymptote along with the correct function (this asymptote is x = 1).

Desmos log-basexof5 Mathematix-logbasexof5

AlexanderJCS commented 7 months ago

Thanks for finding this. I'll fix this issue in the coming days when I have more time.

Note to future self: equate the denominator of the change-of-base log function to 0 to find the asymptotes