09-17-2013 09:17 AM
I have a lab that I have been working on and just cannot figure out. If anyone had any input it would be greatly appreciated.
The lab is to: Develop a VI that computes the value of sin(x) at a given x using n terms of the series expansion of the sine function.
-Create a control which represents the value of n in the sin(x) equation
-Create an indicator to show the result of sin(x)
I have been playing around with loops and cannot figure it out.
Thanks
09-17-2013 09:30 AM
The series expansion is a number of x-exponents and factors, right? According to your instruction you should use N of those.
So, make a list of the exponents and factors (actually you only need the factors), loop through them with N as loop counter and x^i * factor, sum up the result.
/Y
09-17-2013 09:47 AM
Also, post the code you have. We will guide you, but not do the work entirely. 😉
09-17-2013 10:36 AM
As a first step, find the taylor series expansion for sin(x). Do you have that?
@waltonj1 wrote:
I have been playing around with loops and cannot figure it out.
All you probably need is a single loop, not loops. Show us what you have and we can probably point you in the right direction.
(If you would have searched the forum, you probably would have found some interesting discussions, such as this one.)
09-17-2013 11:34 AM
I read that but it did not help too much. Heres the series expansion
Here is the problem (#2)
Here's what I have now. Please ignore the formula I have in the loop, I believe it is wrong...
09-17-2013 11:39 AM
I see that the proper capitalization of LabVIEW is not being taught these days....
09-17-2013 11:44 AM
I always do the proper capitlization myself! You can see by the name of the file 🙂
09-17-2013 11:57 AM
09-17-2013 12:02 PM
09-17-2013 12:09 PM
How exactly do I go about that? Sorry...new
Thanks