abdulganiy

140 Reputation

6 Badges

7 years, 207 days

MaplePrimes Activity


These are replies submitted by abdulganiy

@rcorless 

Thank you so much for your comments. You have indeed opened my eyes to see beyond and motivated me to want to learn more. It is indeed appreciated. Permit me to quote some of your statements then I reply

1. "Another way to modify your code is to write your own numerical boundary-value problem solver using (for instance) quasilinearization (your problem is a second-order nonlinear boundary-value problem, and the process of quasilinearization replaces nonlinear problems with a sequence of linear ones --- see eg https://en.wikipedia.org/wiki/Draft:Quasilinearization for a description).  Is that what you want to do?"

This is indeed what I want. Ability to write my own numerical boundary-value problem solver. Please can you be of help? Also, if possible can I learn from you?

2. Your code looks as if it might be a fixed stepsize finite-difference approach.

You are 100% right.

3. Are you trying to learn how "shooting" methods work?

Would like to know this also.

Thank you once again for your time and valuable comments.

@tomleslie Thank you for your comment and observation.

Actually, the correct values occupy the even positions in columns Ex.y, Ex.z, Error y, and Error z respectively. Also, could there be a reason why consecutive values in columns Ex.y and Ex.z always come in "pairs"? It would be appreciated if the code can be modified so that the pairing values will not occur.

Thank you for your time and best regards.

@acer Thank you so much for the enlightenment. It is appreciated indeed and thank you for your time

@mmcdara Thank you for your time and response. You right. Please kindly check the attached document above for your perusal. Your comment would highly be appreciated.

@tomleslie 

Thank you for your time and response. However, there exist differences. See the attached. I really wish to know what is responsible for the differences and when does one use the syntaxes. Also, which is the best of the two

 

SDFFM_STAB.mw

@dharr

Thank you so much. It is appreciated 

@dharr 

Thank you so much for your kind reply. Is it possible to remodify the code? If yes, can you be of help?

Thank you so much and kind regards.

@Preben Alsholm Thank you so much. I didn't take note of that. Your comment is appreciated. 

@Carl Love Your guess is correct. the two numbers were fictitious numbers to complete the list in the vector.

@tomleslie I really appreciate your suggestion and time. However, when I run the code in Maple 2016, there is an error message "Error, (in plots:-display) display does not accept the legend option". I have tried to check what may be wrong but no luck. Could you please be of help?

 

@Carl Love Thank you so much. Your comments and suggestions were useful. It is appreciated

@Kitonum 

Thank you for the adjustment and your time. The suggestion is insightful.

One more thing! If I want the legends within the graph, how do I accomplish that?

Kind regards.

@acer 

Thank you so much. Your methodology is an eye opener.

Accept my best regard as always.

@tomleslie 

Kindly see the worksheet under my reply @ acer.

Thank you and kind regards

@acer 

Thank you for your reply. I wanted to write an independent code different from the Maple inbuilt package for numerical. However, met with difficulty. The exact and numerical in my code do not agree.

Kindly see the attached for your perusal and possible modifications and enlightenment
 

restart

``

restart:

``

``

e1:=y[n+1]=y[n]+h*f(n):

``

``

inx:=2:

    h               Num.y                Ex.y             Error y
 0.10        5.1000000000        6.8858944423                1.79
 0.20        5.2100000000        6.4496474644                1.24
 0.30        5.3290000000        6.0739473917               0.745
 0.40        5.4561000000        5.7530324244               0.297
 0.50        5.5904900000        5.4816890703               0.109
 0.60        5.7314410000        5.2551999668               0.476
 0.70        5.8782969000        5.0692966676               0.809
 0.80        6.0304672100        4.9201169227                1.11
 0.90        6.1874204890        4.8041660239                1.38
 1.00        6.3486784401        4.7182818285                1.63

``


 

Download EULER_Correction.mw

.

1 2 3 Page 1 of 3