SurdText Command

SurdText( <Point> )

Creates a text representation of the point, with coordinates in the form \(\frac{a+b\sqrt{c}}{d}\).

SurdText((2.414213562373095, 1.414213562373095)) creates the text (\(1 + \sqrt{2}, \sqrt{2})\)

SurdText( <Number> )

Creates a text representation of the number in the form \(\frac{a+b\sqrt{c}}{d}\).

  • SurdText(2.414213562373095) creates the text \(1 + \sqrt{2}\)

  • SurdText(2.439230484541326) creates the text \(\frac{7+3 \sqrt{3} }{5}\)

SurdText( <Number>, <List> )

Creates a text representation of the number, rewritten as a multiple of the constants in the list. If the list is empty, the command uses a list of common constants.

  • SurdText(3.718281828459045, {exp(1)}) creates the text \(e + 1\)

  • SurdText(5.382332347441762, {sqrt(2), sqrt(3), sqrt(5)}) creates the text \( \sqrt{5} + \sqrt{3} + \sqrt{2}\)

  • SurdText(1.693147180559945, {ln(2)}) creates the text \( \ln(2) + 1\)

  • In order to use this command in a Text object, the option LaTeX Formula needs to be enabled in the Text tab of the Menu-options.svg Properties Dialog of the text.

  • Since this command works with a rounded decimal number as input, in some cases the result might be unexpected.

  • If a suitable answer can’t be found, the number will be returned. For example, the command SurdText(1.23456789012345) returns 1.23456789012345.

  • See also the FractionText and ScientificText commands.