Skip to content

convert TaylorN object into Num #340

@evolbeginner

Description

@evolbeginner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions