LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

taylor expansion of sinx

Solved!
Go to solution

Hello, I am doing this taylor expansion of sinx and I need to find the error bar. What is the error bar and how can I get it?

I think my approach to get the taylor expansion of sinx for 1 and 2 term is fine. 

 

Thank you!

0 Kudos
Message 1 of 8
(4,615 Views)

Have a look here for some ideas.

 

Define what you mean by "error". Do you want to know the difference between the taylor approximation and the sine function?

 

(An error bar typically describes standard deviations assuming a Gaussian distribution due to random errors. You only have the exact value and an approximation, so one possibility would be to just look at the difference between them (Your addition makes no sense here). Also a formula express VI seems complete overkill, just use primitives from the numeric or math palette.

0 Kudos
Message 2 of 8
(4,588 Views)

Yes. The difference between the two values.

0 Kudos
Message 3 of 8
(4,584 Views)

So why do you add them instead?

0 Kudos
Message 4 of 8
(4,578 Views)

I am confused of how to get the error bar. That’s why. 

0 Kudos
Message 5 of 8
(4,553 Views)

A bar is a graphical element, you currently only have numeric outputs. Please explain how you want to display your "bar".

 

Simply take the difference between the correct value (sine function) and the taylor approximation. If you don't care about the sign, take the absolute difference.

0 Kudos
Message 6 of 8
(4,550 Views)

How would I do that? The difference in value which is the error bar, correct? 

0 Kudos
Message 7 of 8
(4,535 Views)
Solution
Accepted by topic author BArtzon

Talk to your classmates.  Talk to your teacher.  You'll progress a lot faster by having a person-to-person discussion to get some of the very strange and probably "wrong" ideas out of your head.  We are not supposed to do your homework for you.  You need to put the time and effort into learning the material, and if you don't understand something, ask someone, a classmate or an instructor.  If you are learning this entirely by yourself, on your own, go view the "Learn LabVIEW" videos on the Web, read (and do all of the example in) the LabVIEW Tutorials on the Web and on this Forum.  Write LabVIEW code, execute it and see what it does.  Write simple LabVIEW code that only does one thing -- when you have mastered that, add a little more code to make it do two things (or, better, make it a sub-VI, write another "one-thing" sub-VI, and write a program that calls the two sub-VIs to "do two things".  

 

Bob Schor

0 Kudos
Message 8 of 8
(4,490 Views)