Page History: trace

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2012/07/04 00:32


trace(var#1,var#2,...,var#n) trace evaluations through the Output window.

Returns a string containing the value of the arguments with output order and surrounding text specified by first argument. Specifying of the first text argument is optional.

Syntax

if var#1 is not a text, trace() return comma separated values

example

if var#1 is a text, trace() return the string (no other values)

example

if var#1 is a trace-formatted text, trace() return a string according with var#1 pattern.

to show variable values with custom text/order you must insert into curly brackets the trace() variable position index;

variable position index is 0 for var#2, 1 for var#3, 2 for var#4, etc...

example

NOTE: curly brackets can be added typing "shift" + "[" for "{" and "shift" + "]" for "}"

trace() output can force evalutation, placing before the position index:

  • S: for symbolic evalutation

  • N: for numeric evalutation

example

Usage

trace() can be used:

  • directly, like a common function by requiring numerical (=) or symbolical (→) evalutation


  • directly, inside for loops (at least one operation must be performed inside the loop)

  • directly, inside line() (at least one operation must be performed inside the line())


History

  • SMath 0.91 (stable): first relase

See also


References

ScrewTurn Wiki version 2.0.37. Some of the icons created by FamFamFam.