Posted on

Following is a simple demonstration:

Here, we define x as a symbol rather than a variable so that this expression won’t be calculated at once, otherwise, an error like the following one will occur:

Then, to perform integration, just apply int(y, x) function, where the first argument is the function, and the second one being the main variable.

References:

  1. https://www.mathworks.com/help/symbolic/int.html
  2. http://mathworld.wolfram.com/Erfi.html

Leave a Reply

Your email address will not be published. Required fields are marked *