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)


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 21 of 26
(175 Views)

Thanks for the feedback. 

0 Kudos
Message 22 of 26
(169 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
(212 Views)

Why ask again, you got a nice answer here.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 24 of 26
(199 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
(191 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. 🙂


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 26 of 26
(156 Views)