Lewis Van Winkle
Lewis Van Winkle
>Can you tell me if TinyExpr is able to evaluate summation, Σ (sigma) to calculate a sum of multiple terms? No, not directly. You can do "term1 + term2 +...
Check out the documentation at: https://github.com/codeplea/tinyexpr#binding-to-custom-functions You can add in any custom function you like.
Why prefer INFINITY over NAN?
>that I mapped to the ascii value (so range 32.0 ish to 127.0 ish with the exact value being the respective letter) >it seems like it expects the input values...
Maybe you should start with something simple and work your way up? There's any number of things that could be going wrong. E.g., you could take `example4.c` and make sure...
Sigmoid activation, used by default, can return only values from 0 to 1. You could try something like ``` const double output[4] = {0.3, 0.4, 0.5, 0.6}; ``` to bring...
You're going to need to change the activation function too. You could do that just by scaling everything. I.e. instead of having it expect most values between 0 and 1,...
I can't do it for you. You'll have to actually read the code and try to understand. Think what happens with the exp() function. What happens when you pass in...
Did you look at the code? It would be very easy to modify it to do what you want.
Start here: https://github.com/codeplea/tinyexpr/blob/74804b8c5d296aad0866bbde6c27e2bc1d85e5f2/tinyexpr.c#L261 You could add something after that such as: ``` if (!var) var = my_function_to_save_token_names(start, s->next - start); ``` You'd define that function as: ``` static const te_variable...