RedcrabX – Quick Start Guide

Your first steps with the worksheet calculator  |  Version 1.0

Back to MathBox Guide

Table of Contents


1. The Worksheet Concept

RedcrabX is a worksheet calculator: instead of a single input line you work on a free-form canvas where each calculation lives in its own MathBox. Results are shown immediately as you type.

Key ideas:


2. The Workspace

The main window is divided into three zones:

ZoneDescription
Ribbon (top)Add boxes, change font, toggle panels, open/save files, print.
Function Panels (left side)Collapsible panels with clickable function buttons. Click a button to insert the function name at the cursor position in the active MathBox.
Canvas (center)The worksheet: drag boxes freely, resize them, arrange the layout as you like.

Opening a Panel

Click one of the ribbon buttons in the Functions group: Functions, Special, Business, Physics, Geometry, Electrics, or Temp. Coeff. Each button toggles the corresponding panel open or closed.


3. Your First Calculation

  1. Click on a position on the workspace to create a new Mathbox at that position.
  2. Click inside the box and type an expression, e.g. 2 + 3 * 4.
  3. The result appears immediately to the right of the = sign: 14.
  4. Press Enter to confirm and move focus away, or just click elsewhere.
2 + 3 * 4              =  14
100 / 4 - 7            =  18
2^10                   =  1024
sqrt(2)                =  1.41421356
Operator precedence follows standard rules: ^ (power) > * / > + -. Use parentheses to override: (2 + 3) * 4 → 20.

4. Variables and Assignments

Use := to assign a value to a variable. Variable names are case-sensitive and may contain letters, digits, and underscores.

r := 5                 // assign radius
A := pi * r^2          // use it: A = 78.53981634
U := 230               // voltage
I := 10
P := U * I             =  2300      // power
Tip: Assigned variables show no unit even when the expression uses an electrical function. Assign to a variable when you need the raw number for further calculations.

Built-in Constants

NameValueDescription
pi3.14159265…Circle constant π
e2.71828183…Euler’s number
phi1.61803399…Golden ratio φ

5. Using Functions

Functions are called with parentheses: name(arg1, arg2, …). You can type a function name directly or click the corresponding button in a function panel to insert it at the cursor.

sin(30)                =  0.5         // DEG mode
sqrt(144)              =  12
log(1000)              =  3
abs(-7.5)              =  7.5
round(3.7)             =  4
max(3, 8, 2)           =  8

Nested Functions

sqrt(pow_ur(230, 50))  =  32.53 V    // voltage from power and resistance
round(pi * 1000) / 1000 =  3.142

6. Function Panels Overview

Each panel is a collapsible sidebar with function buttons grouped by topic. Click any button to paste the function name (and argument placeholders) into the active MathBox.

General Math Functions

GroupTypical functions
Roundinground, floor, ceiling, truncate
Power & Rootsqrt, cbrt, pow, rsqrt
Logarithmln, log, log2, exp, expm1, log1p
Integer mathgcd, lcm, factorial, fibonacci, mod, divrem
Sign & Clampabs, sign, clamp, min, max
Number theorydigitsum, digitroot, binomial
Financediscount, markup, vat, sint, cint, compound
Bitwiseandbit, orbit, xorbit, shl, shr, rotl, rotr

Geometry & Trigonometry Geometry

GroupTypical functions
Trigonometrysin, cos, tan, sec, csc, cot
Inverse trigasin, acos, atan, arcsec, arccsc, arccot
Hyperbolicsinh, cosh, tanh, sech, csch, coth
Inv. hyperbolicasinh, acosh, atanh, arcsech, arccsch, arccoth
Angle & arcdeg2rad, rad2deg, norm_angle, hypot, atan2
Special trigsinc, versine, haversine, chord, gudermannian

Statistics & Finance Business

GroupTypical functions
Descriptive statsaverage, median, stdev, var, skewness, kurtosis
Spread & ordermin, max, range, iqr, mad
Aggregatessum, product, count, geomean, harmean
Percentagespercentof, pctdiff, ratiopct, discount, markup
Tax & interestvat, taxof, sint, cint, cintearn, compound
Setsunion, intersect, setdiff, symdiff, subset, card

Matrix & Rotation Physics

GroupTypical functions
Matrix opsdet, inv, transpose, trace, rank, chol, eigenvalues
Normsnorm, norm2, vnorm1, vnorminf, magnitude
Linear solveinv(A) * b  or  Cholesky decomposition
Rotation matricesrotx, roty, rotz, ypr, rpy
Quaternionsqmul, qconj, qnorm, qtomatrix, qtoeuler, qaxis, qangle
Complex numbersre, im, magnitude, phase, conjugate

Electrical Engineering Electrics

Full documentation: ElectricsGuide.html

GroupTypical functions
Coulomb & Chargecoulomb, charge, energy
EC Electricalaltvolt (AC voltage characteristics table: Ueff / Us / Uss / Ug)
EC Electricalvoltang(Ueff, φ) – instantaneous sine voltage at angle φ [°]: u = Ueff·√2·sin(φ) [V]
EC Electricalvoltime(Ueff, f, t) – instantaneous sine voltage at time t [ms]: u = Ueff·√2·sin(2π·f·t/1000) [V]
EC Electricalacperiod(f=…) / acperiod(T=…) – period ↔ frequency converter: T = 1/f [s/Hz]
EC Electricalrmssqr(Us) – RMS value of a symmetric square wave: U_rms = Us [V]
EC Electricalrmstri(Vs) – RMS value of a symmetric triangular wave: U_rms = Vs/√3 [V]
Wires & Resistorsparres(R1, R2, …) – parallel resistors, any count: 1/R = Σ 1/Ri [Ω]
Wires & Resistorsvoltser(Unew, Um, Rm) – voltmeter series resistor: Rs = Rm·(Unew/Um−1) [Ω]
Wires & Resistorsampshunt(Inew, Im, Rm) – ammeter shunt resistor: Rs = Rm·Im/(Inew−Im) [Ω]
Wires & Resistorspiatt(Z, dB) – Pi attenuator: R1=R3 shunt, R2 series [Ω] — K=10^(dB/20)
Wires & Resistorstatt(Z, dB) – T attenuator: R1=R3 series, R2 shunt [Ω] — K=10^(dB/20)
Wires & Resistorsrcseries(C, f, R, U) – RC series circuit: Xc, Z, UR, UC, I, P, Q, S, φ
Inductorrlseries(L, R, U, f) – RL series circuit: XL, Z, UR, UL, I, P, Q, S, φ
Inductorlcrres(L, C, R, U) – series RLC resonance: f0, I0, U0, XL/XC, Q, d, b, fo, fu, Ifg, Zfg
Inductorlcrseries(L, C, R, f, U) – RLC series circuit: XL, XC, Z, UL, UC, UR, I, P, QL, QC, S, φ
Inductorlcrparallel(L, C, R, f, U) – RLC parallel circuit: XL, XC, Z, IL, IC, IR, I, P, QL, QC, S, φ
Inductorlcrrespar(L, C, R, U) – parallel RLC resonance: f0, I0, IL, IC, XL/XC, Q, d, b, fo, fu
Inductorrlparallel(L, R, U, f)
Capacitorrccharge(R, C, U, t) – RC charging voltage: Uc(t) = U·(1−e^(−t/(R·C)))
Capacitorrcdischarge(R, C, U, t) – RC discharging voltage: Uc(t) = U·e^(−t/(R·C))
Capacitorrcval(U=…, Ul=…, t=…, C=…) – RC solver: find R [Ω] or C [F] from charging target voltage
Wires & Resistorsrcparallel(C, f, R, U) – RC parallel circuit: Xc, Z, IR, IC, I, φ, P, Q, S
Wires & Resistorsrcfilter(Z, fc) – RC filter design: R [Ω], C [F], τ [s], Xc [Ω]
Wires & Resistorsrclp(R, C, f, U) – RC low-pass analysis: Xc, U2, dB, φ, f0, Z, UR, I, τ
Wires & Resistorsrchp(R, C, f, U) – RC high-pass analysis: Xc, U2, dB, φ, f0, Z, UC, I, τ
Inductorrllp(R, L, f, U) – RL low-pass analysis: XL, U2, dB, φ
Inductorrlhp(R, L, f, U) – RL high-pass analysis: XL, U2, dB, φ
Capacitorrcint(…=…, …=…) – RC integrator (5τ): R, C, τ, t1, T, f from any two of R/C/f/T
Capacitorrcdif(…=…, …=…) – RC differentiator (5τ): R, C, τ, t1, T, f from any two of R/C/f/T
dB Converterdbcon (power: P1/P2/db  |  voltage: U1/U2/db)
Ohm & Powerpow_ui, volt_ri, cur_ur, resist_ui
Capacitorxc, capq, taurc, rcfc(…=…,…=…) – RC cutoff frequency solver [Hz/Ω/F]
Inductorinduc_el, xl(…=…,…=…), taul(…=…,…=…), rlfc(…=…,…=…), lcres(…=…,…=…), luit(…=…,…=…,…=…)
Power factorpow_factor, apparent_pow, reactive_pow, active_pow, pow_phase
Three-phasephase3_s3, ph3pow(Ul=…,Il=…,cosφ=…)
Wires

Special Functions Special

GroupTypical functions
Gamma & Betagamma, beta, digamma, erf, erfc
Besselbesselj, bessely, besseli, besselk, sphericalbesselj
Hankelhankelh1re, hankelh1im, hankelmod, hankelarg
Airyairyai, airybi, airyai_prime, airybi_prime
Zeta & Etariemannzeta, eta
Struvestruveh0, struveh1
ML Activationsrelu, sigmoid, tanh, softmax_first, swish, mish, selu
Derivatives (Backprop)relu_prime, sigmoid_prime, tanh_prime, swish_prime

Temperature Coefficients Temp. Coeff.

A read-only reference table of temperature coefficients α (1/K) for common metals, alloys, and semiconductors. Use the values together with resdrift(alpha=α, Rk=…, dT=…) from the Electrics panel.


7. Arrays and Matrices

Numeric Arrays

Enter a comma-separated list inside square brackets:

v := [1, 2, 3, 4, 5]
sum(v)                 =  15
average(v)             =  3
stdev(v)               =  1.58113883

Range Literals

Use the [start..end] or [start..end:step] notation to generate arrays without typing every value:

[1..6]           →  [1, 2, 3, 4, 5, 6]        // integer range, step = 1
[1..12:0.1]      →  [1.0, 1.1, 1.2, …, 12.0]  // 111 elements, step = 0.1
[0..10:2]        →  [0, 2, 4, 6, 8, 10]       // custom integer step
[5..1]           →  [5, 4, 3, 2, 1]           // descending range
Note: Start and end are inclusive. Use a negative step or simply swap start and end for a descending sequence.

Matrices

Rows are separated by semicolons:

A := [1, 2; 3, 4]      // 2×2 matrix
det(A)                 =  -2
inv(A)                 =  [-2, 1; 1.5, -0.5]
transpose(A)           =  [1, 3; 2, 4]

Sets

Curly braces create a set (unordered, no duplicates):

A := {1, 2, 3}
B := {2, 3, 4}
union(A, B)            →  {1, 2, 3, 4}
intersect(A, B)        →  {2, 3}
card(A)                =  3

8. Angle Mode: DEG vs. RAD

Trigonometric functions respect the global angle mode, which can be toggled in the ribbon.

Modesin(30)sin(pi/6)Use when
DEG0.50.01745…Working with angles in degrees (most engineering)
RAD−0.98803…0.5Working with radians (mathematics, signal processing)
Note: The conversion functions deg2rad(x) and rad2deg(x) are always available regardless of the current mode.
// DEG mode
sin(90)     =  1
cos(60)     =  0.5
atan2(1,1)  =  45      // degrees

// RAD mode
sin(pi/2)   =  1
cos(pi/3)   =  0.5
atan2(1,1)  =  0.7854  // radians (= π/4)

9. Output Format

Results are displayed with automatic precision. You can control the format:

FeatureDescription
Decimal placesSet the number of decimal places in the ribbon font/format toolbar. Applies to all MathBoxes.
Automatic unitsElectrical functions print their SI unit when called directly (e.g. pow_ui(230,10)2300 W). Assigned variables show no unit.
Duration displayResults of charge_t, energy_t, and dur() are shown as HH:MM:SS.
Array displayArrays are shown as [a, b, c, …]; matrices as [a, b; c, d].

10. Other Box Types

Box TypeRibbon ButtonPurpose
TextBoxTextBoxWrite text for notices and documentation.
PlotBoxPlotBox2D function plot. Type a function of x, e.g. sin(x).
ChartBoxChartBar or line chart from array variables defined in MathBoxes above.
ImageBoxImageInsert an image (PNG, JPG) onto the canvas for annotation.
LabelBoxLabelFree-text label for headings, notes, or section dividers.
Tip: Combine LabelBoxes and MathBoxes to create a structured, self-documenting engineering calculation sheet that can be printed or previewed.

11. Keyboard Shortcuts

KeyAction
Ctrl+azInsert lowercase Greek letter (e.g. Ctrl+a → α, Ctrl+p → π)
Ctrl+Shift+AZInsert uppercase Greek letter (e.g. Ctrl+Shift+P → Π)
Ctrl+1Insert square-root symbol √
//Insert fraction bar (type // to create a visual fraction)
Ctrl+^Toggle exponent (superscript) input on / off

12. Example Calculations

Ohm’s Law and Power Dissipation

U  := 230            // supply voltage [V]
R  := 47             // resistance [Ω]
I  := U / R          =  4.89361702   // current [A]
P  := pow_ui(U, I)   =  1125.53 W   // power with unit

Statistics on a Measurement Series

data := [12.3, 11.8, 13.1, 12.7, 11.5, 13.4, 12.9]
average(data)        =  12.52857
stdev(data)          =  0.67737
median(data)         =  12.7
iqr(data)            =  1.05

Right Triangle

a := 3               // leg a
b := 4               // leg b
c := hypot(a, b)     =  5            // hypotenuse
alpha := atan2(a, b) =  36.86990°   // DEG mode

Wire Resistance and Voltage Drop

rho := 1.72e-8       // Cu resistivity [Ω·m]
l   := 50            // one-way length [m]
A   := 2.5e-6        // cross-section [m²]
I   := 16            // load current [A]

dU  := voltdrop(rho, I, l, A, 0)    =  11.01 V
dU% := voltdropct(230, rho, I, l, A, 0) = 4.79 %

Temperature Rise of a Resistor

alpha := 0.00393     // Cu temperature coefficient [1/K]
Rk    := 100         // resistance at 20 °C [Ω]
dT    := 80          // temperature rise [K]

Rw := resdrift(alpha=alpha, Rk=Rk, dT=dT)        =  131.44 Ω
// reverse: find temperature from measured warm resistance
resdrift(alpha=alpha, Rk=Rk, Rw=131.44)          =  80 K

dB Conversion

// Power mode  –  db = 10 · log10(P1 / P2)
dbcon(P1=2, P2=1)        =  3.0103 dB   // level from two powers
dbcon(P1=2, db=3.0103)   =  1 W          // reference power P2
dbcon(P2=1, db=3.0103)   =  2 W          // input power P1

// Voltage mode  –  db = 20 · log10(U1 / U2)
dbcon(U1=2, U2=1)        =  6.0206 dB   // level from two voltages
dbcon(U1=2, db=6.0206)   =  1 V          // reference voltage U2

2×2 Matrix Inversion

A := [2, 1; 5, 3]
det(A)               =  1
inv(A)               =  [3, -1; -5, 2]
A * inv(A)           =  [1, 0; 0, 1]   // identity check

RedcrabX Quick Start Guide  —  further topics: MathBox Guide  |  Electrics Guide  |  Geometry Guide  |  Plot Guide  |  Chart Guide