Skip to main content

Let's say this is the mock function with five parameters:

f[\[Tau]_f[τ_, r_, \[Sigma]_σ_, S0_, k_] := r + \[Tau]τ

Store data in a text file (say "test.txt" and set the folder accordingly); i.e., copy paste your data in a text file; name and save it in an accessible folder.

Next, import it as a list of values because we need rows containing five parameters each as a list.

rawdata = Import["C:/test.txt", "Table"]
title = First@rawdata;
data = Rest@rawdata;

Apply the function to each row:

f @@@ data

Now you will have to write the function.

Let's say this is the mock function with five parameters:

f[\[Tau]_, r_, \[Sigma]_, S0_, k_] := r + \[Tau]

Store data in a text file (say "test.txt" and set the folder accordingly); i.e., copy paste your data in a text file; name and save it in an accessible folder.

Next, import it as a list of values because we need rows containing five parameters each as a list.

rawdata = Import["C:/test.txt", "Table"]
title = First@rawdata;
data = Rest@rawdata;

Apply the function to each row:

f @@@ data

Now you will have to write the function.

Let's say this is the mock function with five parameters:

f[τ_, r_, σ_, S0_, k_] := r + τ

Store data in a text file (say "test.txt" and set the folder accordingly); i.e., copy paste your data in a text file; name and save it in an accessible folder.

Next, import it as a list of values because we need rows containing five parameters each as a list.

rawdata = Import["C:/test.txt", "Table"]
title = First@rawdata;
data = Rest@rawdata;

Apply the function to each row:

f @@@ data

Now you will have to write the function.

Source Link
Syed
  • 59.5k
  • 5
  • 40
  • 95

Let's say this is the mock function with five parameters:

f[\[Tau]_, r_, \[Sigma]_, S0_, k_] := r + \[Tau]

Store data in a text file (say "test.txt" and set the folder accordingly); i.e., copy paste your data in a text file; name and save it in an accessible folder.

Next, import it as a list of values because we need rows containing five parameters each as a list.

rawdata = Import["C:/test.txt", "Table"]
title = First@rawdata;
data = Rest@rawdata;

Apply the function to each row:

f @@@ data

Now you will have to write the function.