Skip to main content
1-Visitor
November 4, 2016
Question

Integrating with a vector

  • November 4, 2016
  • 4 replies
  • 1748 views

Hello

We are trying to integrate a function which contains a vector for wave frequency (omega) with respect to length (y). We need help programming the integral so that it gives a value of each value of omega. Currently it either gives us a single value, or says the solution does not converge.

Any help would be greatly appreciated!

Kind regards,

James and Daniel

Mathcad1.pngMathcad2.pngMathcad3.png

4 replies

23-Emerald I
November 4, 2016

Use your index, calculate each one:

1-Visitor
November 4, 2016

You can turn the integral into a function and vectorize the function:

19-Tanzanite
November 4, 2016

As Mark has said, you are better off defining a series of functions that calculating a large number of intermediate results, and then evaluating that function at the end.

jferguson1-VisitorAuthor
1-Visitor
November 5, 2016

Thanks all!