Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add define to change return value from double to long double #92

Open
PQCraft opened this issue Mar 15, 2022 · 6 comments

Comments

@PQCraft
Copy link

PQCraft commented Mar 15, 2022

No description provided.

@aeonSolutions
Copy link

Quick question: does Tinyexpr evaluate "Sum (expr)" ?
thank you

@codeplea
Copy link
Owner

Quick question: does Tinyexpr evaluate "Sum (expr)" ? thank you

I don't understand what you're asking, or how it's related to this feature request.

@aeonSolutions
Copy link

my apologies. Is not related, However, I was not able to find such information.

Can you tell me if TinyExpr is able to evaluate summation, Σ (sigma) to calculate a sum of multiple terms?
thank you

@codeplea
Copy link
Owner

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 + term3". And it would be easy to add sigma, as it's easy to add any function.

@aeonSolutions
Copy link

my model is this one
Σ [ (Temp- (-10))*dtime ]

where Temp is a temperature variable and time is a delta time in hours

it would be awesome if tinyexpr was able to compute it

@codeplea
Copy link
Owner

Check out the documentation at: https://github.com/codeplea/tinyexpr#binding-to-custom-functions

You can add in any custom function you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants