![]() |
uRPC micro Remote Procedure Calls - 0.97» news | search | translate |
![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
calcperforms numerical recipes, like polynomial fit, FFT, etc...Input: a sequence of steps (max 10), separated by semicolons; line feed; the data (max 90000 values). Three variables x y z, the input is assigned to x. Each step is in the form var = fn(var) Output: the result of the last assignment. References: NumPy SciPy Arguments: input steps LF data fmt input: format: separator | json | msgpack | raw... fmt_out output: format; optional; default fmt_out = fmtSee the documentation on data formats Endpoint: http[s]://saltlake71.eu/urpc?function=calc Operations: print(var) print a variable decimals = int set the number of decimal digits for print() and the final output var2 = var1 assign var1 to var2 Functions:
Examples with fmt = json input y = reshape2(x, 3, 2, 'C'); z = transpose(y) [1, 2, 3, 4, 5, 6] output [[1.0, 3.0, 5.0], [2.0, 4.0, 6.0]] input y = power(x, 2); z = polyfit(x, y, 2); decimals = 12 [1, 2, 3, 4, 5, 6] output [ 0.0, 0.0, -0.0, 1.0] input z = firwin(31, 44100, 8000, 'lowpass', 'blackman'); y = lfilter(z, 1.0, x) [... samples ...] |