Skip to content

Releases: co1emi11er2/Handcalcs.jl

v0.4.3

05 Dec 23:19
03590c6
Compare
Choose a tag to compare

Handcalcs v0.4.3

Diff since v0.4.2

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.

Merged pull requests:

v0.4.2

18 Nov 23:27
77f50d3
Compare
Choose a tag to compare

Handcalcs v0.4.2

Diff since v0.4.1

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:

Closed issues:

  • LaTeX sqrt does not work (#17)

v0.4.1

07 Nov 15:32
23d2089
Compare
Choose a tag to compare

Handcalcs v0.4.1

Diff since v0.4.0

Updates

  • Fixes the #17 bug.
  • adds documentation on how to set precision

Merged pull requests:

v0.4.0

02 Jul 21:45
b2ec3ca
Compare
Choose a tag to compare

Handcalcs v0.4.0

Diff since v0.3.4

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:

v0.3.4

02 Jul 18:56
10ee409
Compare
Choose a tag to compare

Handcalcs v0.3.4

Diff since v0.3.3

Bug Fixes

Merged pull requests:

Closed issues:

  • Add julia functions (#13)

v0.3.3

02 Jul 15:33
4b96230
Compare
Choose a tag to compare

Handcalcs v0.3.3

Diff since v0.3.2

Bug Fixes

Merged pull requests:

Closed issues:

  • Vectors do not work (#11)

v0.3.2

27 Apr 03:07
Compare
Choose a tag to compare

Handcalcs v0.3.2

Diff since v0.3.1

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

23 Apr 00:36
55c85b8
Compare
Choose a tag to compare

Handcalcs v0.3.1

Diff since v0.3.0

Added Feature

  • Added precompile step. TTFX should be a little quicker for some things.

Merged pull requests:

v0.3.0

22 Apr 05:45
Compare
Choose a tag to compare

Handcalcs v0.3.0

Diff since v0.2.1

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) or y = 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 the not_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:

v0.2.1

12 Apr 01:37
71d9803
Compare
Choose a tag to compare

Handcalcs v0.2.1

Diff since v0.2.0

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: