02-22-2016, 11:10 AM
I would like to apply an arbitrary function to a predefined vector in HOME environment or in a program for some numerical analysis, similar to Matlab.
For example in Matlab I define a vector of discrete time values and apply a function to this vector simply by two commands:
t = (0:0.001:1); ➝ time vector from 0 to 1 sec with 1001 samples
y = sin(t); ➝ y is a vector with 1001 sampled sin(t) - values
Is that also possible with the prime in Home or in programs? I think the CAS functions "apply" or "map" can do this job, but I would like to avoid using CAS functions for the numerical analyses I'm working on.
Thanks for any input!
Maro
For example in Matlab I define a vector of discrete time values and apply a function to this vector simply by two commands:
t = (0:0.001:1); ➝ time vector from 0 to 1 sec with 1001 samples
y = sin(t); ➝ y is a vector with 1001 sampled sin(t) - values
Is that also possible with the prime in Home or in programs? I think the CAS functions "apply" or "map" can do this job, but I would like to avoid using CAS functions for the numerical analyses I'm working on.
Thanks for any input!
Maro