The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Apply a function to a vector
02-22-2016, 11:10 AM
Post: #1
Apply a function to a vector
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Apply a function to a vector - Maro - 02-22-2016 11:10 AM
RE: Apply a function to a vector - DrD - 02-22-2016, 11:28 AM
RE: Apply a function to a vector - Maro - 02-22-2016, 12:31 PM



User(s) browsing this thread: 1 Guest(s)