MATLAB Solving Integral for Cam Follower Friction | MATLAB Help for Simpson's 3/8 Rule

  • Thread starter Thread starter arslan894
  • Start date Start date
AI Thread Summary
The discussion revolves around solving the integral f(x) = ∫e^(1-(x^2)/(b^2))dx with limits from -b to b, specifically for b = 3, using MATLAB. The user encounters an issue where MATLAB's int function indicates that an explicit answer does not exist. They mention using Simpson's 3/8 rule for a manual calculation and seek guidance on implementing this method in MATLAB. The conversation highlights the use of the error function, erf(x/b), to express the integral, particularly noting that for the limits -b to b, it simplifies to erf(1), with an approximate value of 0.8427. There is also a discussion on the reliability of MATLAB's erf function compared to numerical integration methods like quad, suggesting that erf may provide a more accurate solution for this specific integral.
arslan894
Messages
9
Reaction score
0
i am making a MATLAB model of cam follower interaction for measureing friction but need help with this integral
f(x) = ∫e^(1-(x^2)/(b^2))dx the limits are -b to b , take the value of b = 3
when i used the ( int )function in MATLAB it tells that the explicit answer doesn't exist ,so how to solve this in MATLAB ?
i used simpsons 3 8 rule to find the answer on paper but how to find it in MATLAB ?
 
Physics news on Phys.org

Similar threads

Replies
2
Views
3K
Replies
3
Views
17K
Replies
7
Views
2K
Back
Top