取消
显示结果 
搜索替代 
您的意思是: 

range sum

已解决!
转到解答

Hello guys, can anyone help me to solve that app (see in pic).

I need to do that in labview and i don t know how.

that  "q" is user adjustable

0 项奖励
1 条消息(共 5 条)
4,828 次查看
解答
已被主题作者 iHack94 接受

First, it will take a very long time to do an infinite sum, even with LabVIEW.  But assuming that you will settle for a finite sum, all you need to do is return to the Forum, look in the upper right part of the LabVIEW section's first page, and click on Learn LabVIEW Basics -- it will probably teach you enough so that you will be able to solve this problem by yourself.  Of course, you'll need to know how to specify the variable/function "q" ...

 

Bob Schor

0 项奖励
2 条消息(共 5 条)
4,803 次查看

i read something and i dont know how solve that because is my first day with labview and i want see how that app is solve

0 项奖励
3 条消息(共 5 条)
4,777 次查看
解答
已被主题作者 iHack94 接受

One good way to think about how to program any problem, regardless of the programming language is to ask yourself how you would solve it with pencil and paper or on a simple calculator.

 

For your particular problem there are a few steps you might take.

 

First, you indicated that the value of q is user selectable. So you need to determine how the user will do that selection. Next you could check to see if the value entered is within the specified range.  If it is out of range, you need to decide what happens.

 

Second, how will you calculate q^n?  For small values of n it is straightforward, but as n gets large this might be awkward to program. Hint: Consider alternate formulations of the problem.

 

Third, how will you calculate the sum? As Bob Shor pointed out you cannot sum an infinite number of elements in finite time. So, how will you decide when N < infinity is large enough? How much error will occur? Can you calculate or estimate the error?

 

Finally, how will you implement the steps in the chosen programming language, LabVIEW?

 

Nothing about this problem requires advanced knowledge of LabVIEW but it does require understanding the mathematics and learning the basics of LV.

 

Lynn

4 条消息(共 5 条)
4,750 次查看

LabVIEW does not do symbolic math, but that's what you need here.

 

You can use wolfram alpha to get the solution formula or derive it yourself from first principles.

 

 

 

This is trivial to implement in LabVIEW. try it!

 

0 项奖励
5 条消息(共 5 条)
4,719 次查看