09-28-2012 12:25 PM
How to write a Labview code to display sinx where x is in radians using first principle
09-28-2012 12:42 PM
09-28-2012 12:58 PM
Homework questions are getting so terse these days.
09-28-2012 01:22 PM
@smercurio_fc wrote:
Homework questions are getting so terse these days.
Do they not know all they have to do is open the Help and search for their function? And then read. It would be a lot less effort than signing up on NI's forum and then posting a question.
09-28-2012 01:49 PM - edited 09-28-2012 01:51 PM
@TarunAgarwal wrote:
... using first principle
Of course that could mean "without using any trigonometric functions", for example, which is a more interesting problem. 😄
You could implement a Taylor Series, for example. 😄
09-28-2012 02:06 PM
I also think so that we have to expand it using taylor series .How to start in that case..
09-28-2012 02:08 PM
This one i already know my dear..
@sparkysquared wrote:
Uh, use the sine function?
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/sine/
--Ryan
09-28-2012 03:37 PM - edited 09-28-2012 07:26 PM
@TarunAgarwal wrote:
I also think so that we have to expand it using taylor series .How to start in that case..
You start with the wikipedia entry.
Then you wrap the given angle into the -pi..+pi interval and apply the taylor series:
Where do you have problems?
10-02-2012 05:47 PM - edited 10-02-2012 05:48 PM
Just to wrap this all up, here's a quick attempt of a Taylor series implementation of sine(x). With 14 terms, it is within ~1e-15 of the stock trigonometric function shipping with LabVIEW over a very wide range.
I am sure improvements are possible.... 😄
Attached VI is in LV 8.2)
10-23-2012 10:30 AM
Can somebody help me in designing the same using mathscript node or formula node .
In formula node there is no function for factorial representation but in mathscript node there is one...
can anybody write the vi for same...