Root.sqrt constructor

Root.sqrt(
  1. Expression arg
)

Creates the square root of arg.

For example, to create the square root of x:

sqrt = Root.sqrt(Variable('x'));

Note: For better simplification and display, use the Sqrt class.

Implementation

Root.sqrt(Expression arg)
    : n = 2,
      super._unary('sqrt', arg);