Releases: co1emi11er2/Handcalcs.jl
Releases · co1emi11er2/Handcalcs.jl
v0.4.3
Handcalcs v0.4.3
Added Feature
- Now functions that are called within other functions should not have to be defined in main for unrolling to work!
- there is one case if you have a function defined in Main, that is the same function name as one in another module (not in main), it will currently use the Main function. This could cause silent errors which is not good. However, this is a single word fix and will be changed in the future. Latexify doesn't parse
Foo.bar(args...)
well currently, so I wanted to keep it this way, but I may change this very soon anyway.
- there is one case if you have a function defined in Main, that is the same function name as one in another module (not in main), it will currently use the Main function. This could cause silent errors which is not good. However, this is a single word fix and will be changed in the future. Latexify doesn't parse
Merged pull requests:
- Fix func not found (#22) (@co1emi11er2)
v0.4.2
Handcalcs v0.4.2
Bug Fixes
- fixed some keyword function parsing (still cant do
x = some_func(; a, b, c)
) - fixed symbol parsing. Variable values that were of type symbol would result in an error previously.
Merged pull requests:
- Kw fixes and misc (#20) (@co1emi11er2)
Closed issues:
- LaTeX sqrt does not work (#17)
v0.4.1
Handcalcs v0.4.1
Updates
- Fixes the #17 bug.
- adds documentation on how to set precision
Merged pull requests:
- README: Add pluto link (#18) (@fonsp)
- fix sqrt and add docs on precision (#19) (@co1emi11er2)
v0.4.0
Handcalcs v0.4.0
Added Features
- Added ability to disable handcalcs when doing simulations. You can then turn it back on when you want to print results
- added a color option
- added ability to promote to certain unit using the
|>
operator - Unitful integration should be working with Latexify v0.16.4 and UnitfulLatexify v1.6.4
Breaking Change
- now requires at least Latexify v0.16.4 and UnitfulLatexify v1.6.4
Merged pull requests:
- Unitful pipe (#15) (@co1emi11er2)
v0.3.4
Handcalcs v0.3.4
Bug Fixes
- Closes #13
Merged pull requests:
- Not funcs (#14) (@co1emi11er2)
Closed issues:
- Add julia functions (#13)
v0.3.3
Handcalcs v0.3.3
Bug Fixes
- Closes #11
Merged pull requests:
- Vectors (#12) (@co1emi11er2)
Closed issues:
- Vectors do not work (#11)
v0.3.2
Handcalcs v0.3.2
Bug fixes
- Fixed parsing of functions with type signatures
- Fixed when expressions were passed as field arguments
Feature added
- Added
len
argument for when argument is too long
v0.3.1
Handcalcs v0.3.1
Added Feature
- Added precompile step. TTFX should be a little quicker for some things.
Merged pull requests:
- Precompile (#9) (@co1emi11er2)
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)
v0.2.1
Handcalcs v0.2.1
This update adds the following:
- Adds the ability to accept parameters
For example:
julia> a, b = 1, 2
(1, 2)
julia> @handcalcs a, b
L"$\begin{aligned}
a &= 1
\\[10pt]
b &= 2
\end{aligned}$"
Merged pull requests:
- Add params ability (#7) (@co1emi11er2)