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

Approximation.Real vs FloatingPoint.Real #95

Open
oluwandabira opened this issue Sep 16, 2021 · 0 comments
Open

Approximation.Real vs FloatingPoint.Real #95

oluwandabira opened this issue Sep 16, 2021 · 0 comments

Comments

@oluwandabira
Copy link

Trying to use this library from its documentation and I wrote this out:

#r "nuget: MathNet.Symbolics, 0.24.0"

open MathNet.Symbolics

open Operators

let x = symbol "x"

let y = symbol "y"

let xy = x * y

Evaluate.evaluate <| Map.ofList ["x", Real 2.0; "y", Real 5.0] <| xy

which I expect to work but the last line is invalid because Real evaluates to Approximation and not FloatingPoint, so I have to change the last line to

Evaluate.evaluate <| Map.ofList ["x", FloatingPoint.Real 2.0; "y", FloatingPoint.Real 5.0] <| xy

Am I doing something wrong that it infers the wrong Real?

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

1 participant