PSeInt Raiz: square root
Works out the square root: the number that, multiplied by itself, gives the value.
- Group:
- Math Functions
- Template
Raiz
Opens the editor with this example loaded. Run it step by step and watch the flowchart.
Worked example
A complete algorithm, ready to copy and run.
Algoritmo Example Escribir Raiz(81)FinAlgoritmoOutput
Shows: 9 (because 9 * 9 = 81)
This is what the console shows when the example runs.
9Common mistake
The value can't be negative.
Good to know
RC is another name for the same function: RC(81) also gives 9.
In a flowchart
This is how it appears in a flowchart, with the same shapes Codoritmo draws.
Template
The general form. Replace what's inside < > with your own data.
Raiz(<numero>)Examples that use it
Programs from the example library where it appears, from the simplest to the most complete.
Quadratic Equation
Solves ax² + bx + c = 0, with real or complex roots.
IntermediateGeometry
Finds a circle's area and solves a right triangle.
Intermediate
More math functions
Codoritmo is an independent, open-source project inspired by PSeInt and compatible with its syntax. It is not affiliated with the PSeInt project. Official PSeInt website.