Mohammed Posted May 15, 2006 Report Share Posted May 15, 2006 Download File:post-5011-1147699760.docCan anybody help me in solving the math eq.shown in attached word doc file using labview Quote Link to comment
Kurt Friday Posted May 15, 2006 Report Share Posted May 15, 2006 Hi Mohammed What you are asking is quite a trivial problem. However we are a bit like your maths teacher, we want to see that you have had a go at the problem yourself before we throw you the solution. Also what is this in relation to, if it's your homework then this is the wrong forum. Quote Link to comment
jpdrolet Posted May 15, 2006 Report Share Posted May 15, 2006 Download File:post-5011-1147699760.docCan anybody help me in solving the math eq.shown in attached word doc file using labview That is confusing, you use the label n for both the number of elements AND summation index. Also the result will be a scalar, not a 1D array. What steps did you try to compute that summation? Quote Link to comment
Mohammed Posted May 16, 2006 Author Report Share Posted May 16, 2006 Download File:post-5011-1147750985.doc That is confusing, you use the label n for both the number of elements AND summation index. Also the result will be a scalar, not a 1D array.What steps did you try to compute that summation? By mistake I used same letter for label & index i.e. 'n'. For clarification 'i' vary from 1 to N in step of 1 'j' vary 1 to N in step of 1 'm' & 'n' summation index will go from 0 to 3 in step of 1 And the result will be a scalar as you have rigthly pointed out. Waiting for the solution (The corrected eq. is given in attached file) Hi MohammedWhat you are asking is quite a trivial problem. However we are a bit like your maths teacher, we want to see that you have had a go at the problem yourself before we throw you the solution. Also what is this in relation to, if it's your homework then this is the wrong forum. I can acknowledge you as my maths teacher, if you solve even a trivial problem like this (In eq. there was a little mistake, for correction see the attachement) Quote Link to comment
jpdrolet Posted May 17, 2006 Report Share Posted May 17, 2006 Waiting for the solution :laugh: :laugh: :laugh: In the mean time you could read LabVIEW help on arrays, For Loops, auto-indexing and related examples. You want to learn LabVIEW don't you? Or use your math skills to factor these summations into a squared double summation? Quote Link to comment
crelf Posted May 17, 2006 Report Share Posted May 17, 2006 In the mean time you could read LabVIEW help on arrays, For Loops, auto-indexing and related examples. You want to learn LabVIEW don't you? :laugh: Quote Link to comment
Mohammed Posted May 17, 2006 Author Report Share Posted May 17, 2006 :laugh: :laugh: :laugh: In the mean time you could read LabVIEW help on arrays, For Loops, auto-indexing and related examples. You want to learn LabVIEW don't you? Or use your math skills to factor these summations into a squared double summation? For double summation it is very easy; I want to use your expertise in solving the problem for 'Four' summation Quote Link to comment
Mohammed Posted May 19, 2006 Author Report Share Posted May 19, 2006 Download File:post-5011-1148040577.vi Hi MohammedWhat you are asking is quite a trivial problem. However we are a bit like your maths teacher, we want to see that you have had a go at the problem yourself before we throw you the solution. Also what is this in relation to, if it's your homework then this is the wrong forum. I want to share the solution which is a part of our big calculation program (ofcourse not a homework). I still want to have your attention for any mistake or further improvement. Quote Link to comment
Kurt Friday Posted May 19, 2006 Report Share Posted May 19, 2006 Hi Mohammed You are on the right track, your vi is producing the correct result but you need to clean your code up a bit by using shift registers to carry the sum and don't use constants on the count terminal of your for loops, pick the appropriate values from your 2D array using the Array Size function, it looks like you started to do that. Also there is no reason for the single for loop up the top that that iterates once. Since you have attempted the problem and had a go I have attached my solution. Download File:post-1058-1148056804.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.