Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

09-16-2014 09:54 PM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi every one,

Is there any way to get the definite integration of a function? I need to do some calculations in my code which one of these is like "Integration of EXP(-x^2)dx from x=-inf to x=+inf". Can anyone please help me?

Thanks

09-17-2014 02:13 AM - edited 09-17-2014 02:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Soran,

running a loop from -INF to +INF with a small dx can take quite a long time. 🙂

Hint: You should rather use MATLAB or MATHEMATICA for such equations. Or paper and pencil…

Best regards,

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

09-17-2014 02:29 AM - edited 09-17-2014 02:30 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

LabVIEW does not do symbolic math. For questions like this, ask wolfram alpha, it even understands your question as written.

The answer is sqrt(pi), of course.

09-17-2014 12:49 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Thank you guys for your reply.

Actually I do not think I can use wolfram (or paper and pencil!) to do this. The integration I mentioned above was just an example of what I should do. In fact, it will be something like this: "EXP(-x^2)/(a^2+(b-x)^2) x=-inf to x=+inf" in which a and b are two constants (relative to x) related to pressure and temperature (which change continuously). So some parts of my code read the temperature and pressure and then should substitute their values inside this formula and finally get the tesult of the integral.

Thanks,

Soran

09-17-2014 01:12 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

You simply use wolfram alpha again (or any other symbolic math tool) and it will give you the resulting formula in terms of a and b (need to upgrade to pro, though). Then program it in LabVIEW.