bakk
c2e9e59fe2
Numerical equation solving using Newton's method
2022-04-24 21:23:29 +02:00
PaddiM8
5ac3a12251
Added error handling to prelude functions and operations
2022-04-23 23:43:06 +02:00
PaddiM8
136036f3f0
Renamed CalcError to KalkError
2022-03-27 21:32:50 +02:00
bakk
4704095cd9
Fixed clippy lints
2022-01-16 20:58:00 +01:00
PaddiM8
67ef28bd7f
Vector comprehensions
2022-01-16 00:33:26 +01:00
PaddiM8
95fd78f3d1
Matrices
2022-01-07 00:39:29 +01:00
PaddiM8
c0cc4060a4
Vector indexing with lowered numbers, eg. v_1
2022-01-05 22:41:41 +01:00
PaddiM8
78efe183c4
Added vector operations
2022-01-05 02:49:12 +01:00
bakk
5b8ad2829c
Implemented piecewise
2021-05-31 18:55:37 +02:00
bakk
637c3e331b
Implemented complex variants of prelude functions
2021-05-22 20:47:10 +02:00
bakk
15c30cfeee
Basics of derivation
...
Derivation implemented for function calls (only). Eg. f'(2). It is not
yet possible to do something like f''(2), but this should be implemented
in the future. It should also be possible to derive normal expressions,
but this is not yet possible.
2021-05-17 20:36:53 +02:00
bakk
9acdd71589
Created 'Identifier' struct that contains prime count and name without primes (ticks ')
2021-05-17 20:17:34 +02:00
PaddiM8
efbeb0857f
WebAssembly foundation
2020-12-30 22:50:39 +01:00
PaddiM8
58bb2fd60f
Simple equation solving, mostly using pre-existing logic from the inverter
2020-12-14 19:21:30 +01:00
PaddiM8
c6d75104b3
Store number literals as f64
2020-12-13 15:52:22 +01:00
PaddiM8
29f8ac94f3
replaced phf with lazy_static
2020-12-10 23:40:29 +01:00
PaddiM8
ce824511ff
Created unit convertion expression. Syntax: <expr> to <unit>
2020-06-18 16:58:01 +02:00
PaddiM8
07e34c6bbb
Implemented inversion for some prelude functions.
2020-06-18 16:20:18 +02:00
PaddiM8
7d845523d8
Made the unit be displayed in the result.
2020-06-18 02:02:48 +02:00
PaddiM8
8adabaa992
Added UnsupportedExpression errors.
2020-06-17 21:28:54 +02:00
PaddiM8
aa449ee92b
Fixed inversion for (function) variables and added unit tests for the inverter.
2020-06-17 17:45:46 +02:00
PaddiM8
99fbdd6883
Fixed the broken unit tests in the parser and completed the test_angle_units test in the interpreter.
2020-06-15 21:27:47 +02:00
PaddiM8
112d8e78ea
Added support for 'minus' expressions in the inverter and added some comments.
2020-06-14 21:54:39 +02:00
PaddiM8
a81cef2a86
Added support for 'minus' expressions in the inverter and added some comments.
2020-06-14 21:35:56 +02:00
PaddiM8
24771b3a5a
Changed inverter to instead move expressions to the LHS, like done when equations are solved in maths. Also made it multiply into parenthesis.
2020-06-14 19:23:02 +02:00
PaddiM8
1edec7d16e
Added some error checking to the inverter.
2020-06-13 22:18:37 +02:00
PaddiM8
d042e3577f
Made it possible for the inverter to invert expressions with function calls.
2020-06-13 20:06:21 +02:00
PaddiM8
bff785bc1e
Created the foundation of an expression inverter. This is used to create a second *inverted* unit declaration, in order to cover both of the units.
2020-06-13 19:01:33 +02:00