12-09-2017 10:05 PM
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!
Solved! Go to Solution.
12-10-2017 12:20 AM
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.
12-10-2017 12:37 AM
Yes. The difference between the two values.
12-10-2017 01:07 AM
So why do you add them instead?
12-10-2017 11:05 AM
I am confused of how to get the error bar. That’s why.
12-10-2017 11:11 AM
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.
12-10-2017 03:30 PM
How would I do that? The difference in value which is the error bar, correct?
12-12-2017 06:59 AM
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