Skip to content

Generalize core primitives to abstract number type #447

Description

@sorki

We can turn circle :: ℝ -> SymbolicObj2 into e.g. circle :: Num a => a -> SymbolicObj2 a.

That would allow us to use different numerical types instead of being fixed on Doubles. Some fun examples include

It would also open a lot of doors to other backends like accelerate or GLSL, where symbolic objects could be represented as, well.. symbolic functions.

Also an analytical simplification step could be implemented before actual discretization and evaluation which could drastically improve performance for some cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions