ATC 2.1.7

Examples

Copyable ATC commands, TXT workflows, script examples, and user-function examples for practical use.

Note

ATC command output can depend on angle mode, precision mode, previous result indexes, and persisted settings.

Basic arithmetic

Evaluate a direct expression.

2+2

Run in ATC Online

Trigonometry

Use the configured angle mode; radians are common for pi expressions.

sin(pi/2)

Run in ATC Online

Equation solving

Solve a supported polynomial equation.

solve equation(x^2-5*x+6)

Run in ATC Online

Polynomial simplification

Expand or simplify a supported polynomial expression.

simplify polynomial((x-2)*(x-3))

Run in ATC Online

Roots to polynomial

Build a polynomial from known roots.

roots to polynomial(2\3)

Run in ATC Online

Average

Calculate a short statistical summary.

avg(2\4\6)

Run in ATC Online

DSP / FFT

Run a small signal-processing transform workflow.

fft(1\0\0\0)

Run in ATC Online

TXT workflow

Use repeatable file-based workflows.

predefine txt
solve txt
eliminate strings

Run in ATC Online

Script Examples

The 2.1.7 package includes script files for reusable workflows.

  • break.txt - script
  • calc.txt - script
  • conditions_script_example.txt - script
  • cos+sin.txt - print("Enter the angle:")
  • countOcurrences.txt - script
  • day of week.txt - script
  • deleteXoccurrences.txt - script
  • factory reset atc.txt - reset all
  • getPosValue.txt - script
  • isContained.txt - script
  • isContainedByIndex.txt - script
  • isContainedVariable.txt - script
  • isEqual.txt - script
  • isToWrite.txt - script
  • isVariable.txt - script
  • Multiplication Table 1-100_script_generator.txt - script
  • openTxt.txt - script
  • Replace.txt - script

User Functions

User functions provide small reusable command definitions distributed with the package.

  • cosMinusSin.txt - valueB=InputA cos(valueB)-sin(valueB)
  • factoryResetATC.txt - reset all restart atc
  • generatematrix.txt - script if(isvariable(valueC)){ valueC=valueC+InputA } else{ valueC=0 } return valueC
  • multiplication.txt - valueA = InputA valueB = InputB valueC = InputC (valueA+valueB)*valueC
  • multiply.txt - value=InputA (1+1i)*value
  • return.txt - script yy=InputA; x=0; for(x=0;x<14;x=x+1){ if(x==10){ return (x-1)*yy; } }
  • sinPlusCos.txt - valueA=InputA cos(valueA)+sin(valueA)
  • sum.txt - valueA=InputA valueB=InputB valueC=InputC valueC+valueB+valueA
  • trigXpto.txt - valueT=InputA atc_cosMinusSin(valueT)+atc_sinPlusCos(valueT)