Skip to content
EspañolWorkspace →

PSeInt Raiz: square root

Works out the square root: the number that, multiplied by itself, gives the value.

Template
Raiz
Open it in Codoritmo

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.

raiz-square-root.psc · 3 lines
Algoritmo Example    Escribir Raiz(81)FinAlgoritmo

Output

Shows: 9 (because 9 * 9 = 81)

This is what the console shows when the example runs.

9

Common 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.

lado ← Raiz(area)
Used inside a calculation. It has no shape of its own; it's used inside a calculation. Flowchart: a process rectangle reading "lado ← Raiz(area)", with one arrow in and one arrow out.
Draw the flowchart of your own algorithm →

Template

The general form. Replace what's inside < > with your own data.

Raiz · 1 line
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.

    Intermediate
  • Geometry

    Finds a circle's area and solves a right triangle.

    Intermediate
See every Math example →

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.