Difference between revisions of "Template:Root/doc"

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
m (1 revision)
 
(No difference)

Latest revision as of 17:53, 18 January 2010

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)