Skip to content

Simplify sqrt(1) to 1 #337

@samuela

Description

@samuela

From https://discourse.julialang.org/t/why-wont-symbolics-jl-simplify-sqrt-1-to-1/65921,

@variables x
sqrt(cos(x)^2 + sin(x)^2) |> simplify

gives me sqrt(1). Why isn't this reduced to simply 1?

OTOH

sqrt(0*x+1) |> simplify

reduces to 1, no problem.

┆Issue is synchronized with this Trello card by Unito

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