Register to reply 
Equation Evaluation Problem in Mathematica 
Share this thread: 
#1
Jul1409, 04:00 PM

P: 601

Hello,
I have the following line in Mathematica:
Thanks in advance 


#2
Jul1409, 11:16 PM

PF Gold
P: 472

What are some examples of what A Q and Ne are so i can try it?
and what is meq? 


#3
Jul1409, 11:22 PM

P: 601




#4
Jul1509, 12:07 AM

PF Gold
P: 472

Equation Evaluation Problem in Mathematica
and also, the a[n] function or array?
but before that make sure youre clearing any variables youre reusing. restarting the kernel does that. 


#5
Jul1509, 12:14 AM

P: 601

Regards 


#6
Jul1509, 10:49 AM

P: 601

I have the same problem again in the following code:
Regards 


#7
Jul1509, 11:21 AM

PF Gold
P: 472

Because of your sums and their indices. To fix this, add:
If[M > 1, m = M, m = 0]; before the second For loop. It changes the greater than equal to to just a greater than. That way the second sum in the second for loop doesn't go from 1 to 0 (1 to Mr1 == Mm==0) 


#8
Jul1509, 11:34 AM

PF Gold
P: 472

As for your first question, I DO get something different each time I change SNR.



#9
Jul1509, 11:42 AM

P: 601

Regarding your previous post, I have doubts that I have something wrong in the mathematical equations. So, I will double check them and see what happen then. Thank you 


#10
Jul1509, 04:23 PM

PF Gold
P: 472

FOR:
\left.\left.\left.\sum _{q=0}^Q \text{Binomial}[Q,q]\sum _{n=0}^{\text{Ne}+q} \frac{(1)^n}{a[n]}\text{Re}\left[\frac{\text{Meq}\left[\frac{A+(2*\text{Pi}*I*n)}{2*\text{SNR}}\right]}{\frac{A+(2*\text{Pi}*I*n)}{2*\text{SNR}}}\right]\right]\right]\right] [/tex] The changes I made were adding the Refine to simplify the complex stuff, and multiplying by 1.0 to give me a real value. I also added the SNR changing in the for loop. Looks like it changes when SNR does. Or did I do something wrong? EDIT: oops, heres my output: 343.991 424.207 520.658 635.431 770.336 926.63 1104.7 1303.75 1521.56 1754.43 1997.27 


#11
Jul1509, 04:28 PM

PF Gold
P: 472

[tex] \sum _{\text{r1}=m}^{M1} \sum _{\text{i1}=1}^{M\text{r1}} \sum _{\text{j1}=1}^{\text{r1}+\text{i1}} \sum _{\text{k1}=0}^{\text{j1}*(\text{Ne}1)} [/tex] but you have defined : If[M >= 1, m = M, m = 0]; and M IS 1, so m=M=1; Then in your sum [tex] \sum _{\text{r1}=m}^{M1} \sum _{\text{i1}=1}^{M\text{r1}} [/tex] you have: r1 from {m to M1} which is r1 from {1 to (11)} or {1 to 0} then you have i1 from {1 to Mr1} which is {1 to (11)} or {1 to 0} So it doesnt sum anything. see : [tex] M=1;m=1;\sum _{\text{r1}=m}^{M1} \sum _{\text{i1}=1}^{M\text{r1}} 1==0 [/tex] 


#12
Jul1609, 02:42 AM

P: 601

Yes, now the fake code is working. I said fake because I gave you fake parameters, so the values you got are not the expected one, because there are not in the range between 0 and 1 as it must be by definition. When I did a slight change toward the real parameters I got the expected results as following:
Best Regards 


Register to reply 
Related Discussions  
Write this Equation using Mathematica  Math & Science Software  9  
Maple 12 problem: long evaluation  General Math  0  
Evaluation of Strike and the 3 point problem...  Biology, Chemistry & Other Homework  1  
Differential Equation and Mathematica  Math & Science Software  4  
Mathematica Evaluation Time  Math & Science Software  4 