v0.3.0
Handcalcs v0.3.0
Added Features
- Recursion through functions now works
- @handcalcs macro suggested to be used for all cases now
- not_funcs keyword to pass functions you do not want to unroll
Breaking changes
- The
@handcalcs
macro will now automatically try to "unroll" the expressions within a function when the expression has the following pattern:variable = function_name(args...; kwargs...)
. - One issue that can arise are for the functions that you do not want to unroll. Consider the expression:
y = sin(x)
ory = x + 5
. Both of these expressions match the format:variable = function_name(args...; kwargs...)
and would be unrolled. This would result in an error since these functions don't have generic math expressions that can be latexified defining the function. You will need to use thenot_funcs
keyword to manually tell the @handcalcs macro to pass over these functions. Some of the common math functions that you will not want to unroll are automatically passed over.
Merged pull requests:
- Recursion (#8) (@co1emi11er2)