co1emi11er2 / Handcalcs.jl

Julia package for converting Julia calculations into rendered latex.
https://co1emi11er2.github.io/Handcalcs.jl/stable/
MIT License
69 stars 1 forks source link

Add julia functions #13

Closed DrDanon closed 4 months ago

DrDanon commented 4 months ago

Another issue I have and you mention in the manual is that not all functions are covered. I have exp() which is not covered so it breaks @handcalcs. One solution is @handcalcs T = exp(-Σ_t * x) not_funcs = [exp] another one is sum(), I use @handcalcs a = sum(σ_t) not_funcs = [sum]

Is there a way for the package user to add all the needed functions??

I want the user (in my case a student) not to worrier about adding special functions to make @handcalcs work.

co1emi11er2 commented 4 months ago

It looks like my set_handcalcs function is not working properly for that. I will fix, but I can add more common math functions to automatically pass over them. Do you have any else in mind? Here are the ones I have now: image

DrDanon commented 4 months ago

For now log() and log10(). I will be using special functions like first order Bessel, but I can use not_funcs = for now. If you will have a way to for the package user to extend the list this will be great.

co1emi11er2 commented 4 months ago

Okay @DrDanon. I made the updates. You can see the docs give a little more detail on how to add specific functions. Let me know if this works for you. image