Skip to content

Simplification of radicals #1500

Open
Open
@ChrisRackauckas

Description

@ChrisRackauckas

MWE:

using Symbolics
@variables y
simplify.([(1//2)*√(4y), (-1//2)*√(4y)])
simplify_fractions.([(1//2)*√(4y), (-1//2)*√(4y)])
julia> simplify.([(1//2)*√(4y), (-1//2)*√(4y)])
2-element Vector{Num}:
  (1//2)*sqrt(4y)
 (-1//2)*sqrt(4y)

julia> simplify_fractions.([(1//2)*√(4y), (-1//2)*√(4y)])
2-element Vector{Num}:
  (1//2)*sqrt(4y)
 (-1//2)*sqrt(4y)

I think step one is to make this √(4)*√(y) * 1//2, and then have it learn it can simplify perfect squares.

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