From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Computing the value of sin(x)


@BArtzon wrote:

How would you do that?


Simple: I would not use the formula node. It is pointless. 😄

 

The factorial function is not available directly, but is well defined, so you can roll your own. What is giving you problems? Note that I don't use the factorial function, because we need the intermediary results anyway. No need for these duplicate operations. Try to do a literal translation of my code into text instead.

 

(You also only need to do the calculation whenever one of the controls changes, and not millions of times per second as you currently do)

0 Kudos
Message 21 of 26
(642 Views)

Thanks for the feedback. 

0 Kudos
Message 22 of 26
(636 Views)

I know how to do n! but (2*n+1) is a little hard? Can anyone help me?

 

Thank you!

0 Kudos
Message 23 of 26
(679 Views)

Why ask again, you got a nice answer here.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 24 of 26
(666 Views)

Because I want to do it other way. With formula. I am trying but I am going nowhere. 

0 Kudos
Message 25 of 26
(658 Views)

So, you are talking about a text based loop?

(That would belong in the subject line!)

 

We are all graphical programmers here and have no interest in that. 🙂

0 Kudos
Message 26 of 26
(623 Views)