A community for students.
Here's the question you clicked on:
 0 viewing

This Question is Closed

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1you can post your source code at http://ideone.com/ and then post a link to it here. I think that would be easier to read than at twiddla.

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0Source Code: http://ideone.com/Wju5T

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1you erased the formula from twiddla?

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0yep, let me draw it again

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1ok  I'm reviewing the code now...

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1where is it going wrong?

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0in the BESSEL function, it seems i get an infinite loop. I want the loop to stop when the absolute number of a part of the sum is less than 10^(12).

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1it may be fruitful to insert some trace statements in your BESSEL function. trace out the values of each component being constructed.

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1you can use std::cout to trace the values out

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1on a separate note, the function could be made more efficient by not computing \((1)^{m}\) but instead having an integer that just toggles between 1 and 1, e.g.: int numerator =1 while (...) { sm = ... numerator = numerator; }

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0I changed \[(1)^m\] with num and that seems to solve the infinite loop problem. I don't know why. But stills the BESSEL function doesn't work for n=2.

asnaseer
 4 years ago
Best ResponseYou've already chosen the best response.1What you should try and do is write some unit tests for each of the methods you have created to ensure they are working as expected. Also, as I suggested above, tracing out the values while looping in the BESSEL function might help you spot where the problem is.
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.