LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW help: Taylor expansion of e^x

I have very little experience with using LabVIEW and have been given an assignment from my research advisor. That assignment is to use LabVIEW and write a code that sums the terms of the Taylor expansion of e^x but without using any functions. 

Any help with this matter would be greatly appreciated.

0 Kudos
Message 1 of 7
(400 Views)

I can guaranteed that you need to use some "functions" (such as add, subtract, multiply, etc.) so your problem as stated cannot be solved. Make sure to ask your teacher exactly what's allowed or not.

 

 

If you have little experience with LabVIEW, I would recommend to start with the learning resources listed at the top of the forum and also look at your course notes. I am sure all required tools have been covered.

 

0 Kudos
Message 2 of 7
(392 Views)

As an example of a Taylor series expansion for sin(x), you could study this post. Now just modify the terms to approximate e^x instead, which is even simpler. See how far you get.

0 Kudos
Message 3 of 7
(382 Views)

I believe the instructor was speaking about built in functions that can be used to expedite the process. An example I can think of is how writing Matlab code can take a significant time when using base functions such as (+,-,*,/) but can be much easier if you have the Symbolic Function Toolbox. I hope I made sense here

0 Kudos
Message 4 of 7
(358 Views)

A Taylor series is always just basic math. The only question would be if you are allowed to use the factorial function, which you really (really!!!) don't need.

0 Kudos
Message 5 of 7
(338 Views)

e^x = 1 + x + x^2 / 2! + x^3 / 3! + … + every x^n / n!

 

that should be very easy.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 7
(303 Views)

Yes, I already linked to that formula.

 

One thing to remember is not getting too greedy and try to calculate too many terms. That factorial will blow up relatively quickly. 🙂

 

(see also) 

0 Kudos
Message 7 of 7
(286 Views)