1
$\begingroup$

If I have this table which produce a list of paires of numbers.

ref2A = Table[{x, GWR[fun2A, t0, NTerms, 0.001]}, {x, 0, nn, 0.005}]

How can I Calculate (plot)the function

f[x_, t_] := (-1 + Sqrt[1 + 2*k*ref2A[x, t]])/k
$\endgroup$
4
$\begingroup$

You can try interpolating the table in order to define your function:

f[x_] = (-1 + Sqrt[1 + 2*k*Interpolation[ref2A][x]])/k;

(I've assumed that ref2A and k were assigned numerical values before defining this function)

$\endgroup$
  • $\begingroup$ Thank you very much dan7geo. It is working now. Appreciate. $\endgroup$ – Essam Oct 10 '16 at 3:15
  • 1
    $\begingroup$ Glad to help...! $\endgroup$ – dan7geo Oct 10 '16 at 5:38
  • $\begingroup$ Hi dan7geo: I got this result: $\endgroup$ – Essam Oct 14 '16 at 18:14
  • 1
    $\begingroup$ What result exactly? $\endgroup$ – dan7geo Oct 15 '16 at 0:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.