Message Boards Message Boards

How to run this big data program in shorter time?

I need Urgent help. Actually, I can run this program when I used data 100 amplitude and 100 frequency but my data around 1000 amplitude and 1000 frequency. When I used more then 200 data its not run. Even if I used 200 data its run but take whole day. Please help me how can I used my whole data and get results in short time. I attached my Mathematica file. I am waiting for your replay. Please suggest.

Attachments:
POSTED BY: Md Taj
7 Replies

Hello, find attached my quick attempt to speed up your code (essentially getting rid of FullSimplify and Simplifyt and using NSolve sometimes instead of Solve). With up to 246 frequencies it works all fine and fast (around 30 seconds). If more frequencies are taken into account something strange happens with your d[ ] variables. Unfortunately you have to figure that out yourself, or ask somebody else, since it may be related to the your data or algorithm. Regards, Rolf

POSTED BY: Rolf Mertig

Rolf Mertig Thank you very much for your reply. Sorry i got your file. Thanks I will try . But I don't know what will be happen.

POSTED BY: Md Taj

Rolf Mertig One more thing, you used 246 frequency only but we have to use similar frequency and amplitude suppose if i used 246 frequency then I have to use 246 amplitude. But in your program may be you used only 246 frequency but where is amplitude?

POSTED BY: Md Taj

Rolf Mertig, I try myself but after 246 data there is error coming but I could not solved. Is there any other way to solve this program and plot. Actually, I need list plot or list line plot using this frequency and amplitude. If I could not use whole data this way, I have to find other way so that I can plot as a list plot using all data. But I could not found anyway, I try to solve this program Symbolically, but I could not run properly. Is it possible to solve this program symbolically and finally plot as a list plot?

POSTED BY: Md Taj

Dear Rolf Mertig, Is it possible to run my program properly without using any loop and finally plot as a list plot using whole frequency and amplitude. If possible please help me .

POSTED BY: Md Taj

I figured out why not all freqs worked: I should not have changed all Solve operations to NSolve. See my note at the top of the notebook. Now it just works, in about 4 minutes. If your program can be rewritten in a purely symbolic way I doubt, since you are solving fourth order equations.

POSTED BY: Rolf Mertig

Dear Rolf Mertig, I am grateful to you. Its enough for me that this program is run using whole data. I am happy to see this. I try to solve my problem using your technique, hopefully I will find my require results. Again, I want to say many many thanks to your help.

POSTED BY: Md Taj
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract