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

convert TaylorN object into Num #340

Open
evolbeginner opened this issue Nov 18, 2023 · 2 comments
Open

convert TaylorN object into Num #340

evolbeginner opened this issue Nov 18, 2023 · 2 comments

Comments

@evolbeginner
Copy link

I am new to taylor. I was wondering if I can convert TaylorN object into Num, for example if I want to in the following code do "m+x" where x is a TaylorN while m is Num but now it turned out "ERROR: MethodError: +(::TaylorN{Float64}, ::Num) is ambiguous." I see when order=1 it works. Could anyone help me with it? Thanks!

using TaylorSeries, Symbolics
x, y = set_variables("x y", order=2)

@variables m

m + x
@lbenet
Copy link
Member

lbenet commented Nov 18, 2023

H! Thanks for opening this issue.

I must admit that i have no true answer to your question. I had played a little bit with the combination of Symbolics and TaylorSeries, a while ago, exploiting the composability offered by Julia; the results are in this branch, which by lack of time from my side, is stalled.

Please, have a look and play a little with it. If I recall correctly, the whole idea was to form objects like Taylor1{Num}; perhaps the same works with TaylorN.

@lbenet
Copy link
Member

lbenet commented Nov 18, 2023

See also #242 (comment)

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

2 participants