User:Σ/Testing facility/Root/doc

This template finds an nth root of a real number. By default, it gives a square root.

To use it to find a square root, enter:
{{root|number}}
To use it to find an nth root, enter:
{{root|number|n}}


Examples:

  • {{root|0.000001}} gives 0.001
  • {{root|0.0001}} gives 0.01
  • {{root|0.81}} gives 0.9
  • {{root|2}} gives 1.4142135623731
  • {{root|25}} gives 5
  • {{root|27|3}} gives 3
  • {{root|256|4}} gives 4
  • {{root|-1}} gives 1i (result if answer is not a real number)