Filter löschen
Filter löschen

problem in iteration code

1 Ansicht (letzte 30 Tage)
NILESH PANDEY
NILESH PANDEY am 7 Feb. 2017
Bearbeitet: NILESH PANDEY am 13 Feb. 2017
please refer my last comment before start working on this code
i have to find the value of y(i) till y(i)-y(i-1)<=2.59e-4
can anyone help me with the code first correcting the error then how can i again start the iteration if y(i)-y(i-1)=>2.59e-4
necessary file is attached with question
  1 Kommentar
KSSV
KSSV am 8 Feb. 2017
Your code shows error....please rectify it.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 9 Feb. 2017
By the point of vpaQ(3), your expression is so unstable that if you calculate the expression in floating point, then the difference in values between adjacent representable double precision numbers can on order of 10^33.
I will see if I can figure out what resolution would be required for reasonable operation.
  8 Kommentare
NILESH PANDEY
NILESH PANDEY am 11 Feb. 2017
Thanks for your opinion i am also doing some test on my project which is the base of this code as soon i get any results that may help i'll share with you also Sir if you have anything more that can guide me You Are Most Welcome Thank You
NILESH PANDEY
NILESH PANDEY am 12 Feb. 2017
Bearbeitet: NILESH PANDEY am 13 Feb. 2017
*NOTE*
Sir, after your analysis i started working on my previous work which was related to this code,when i went in depth of mathematics i have found there is some mistakes have been made in literature of this classic math which was published by some scientists on ieee. after finding the mistakes i have sent a copy of these to California Berkeley University Professor he also agreed with me,now we are working on this how to overcome mistakes so i suggested you if you are working on my code please hold this for a little more time although algorithm will be same but the values of constant will be different.
and sir thank you for your analysis after your guidance i focused my attention more on base of this mathematics and i found mistakes if you didn't guide me then may be i never bothered about this. when i'll overcome from the mistakes and i got correct code i'll discuss with You and my apologize for taking your time on a wrong code
*and also if any one working on this code kindly hold your work until i solve correct mathematics *

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by