Program for golden seleciton
Forum » Programming & Design / TI-Nspire Programming » Program for golden seleciton
Started by: sj_bsj_b
Date: 25 Feb 2018 23:32
Number of posts: 2
rss icon RSS: New posts
I have developed this code on my ti-nspire software. I ported it to Matlab, and it works I'm assuming that there is some simple order of operation errors. Please look it over and see where its wrong desireded function is x^2.10-2sin(x), 0,4,30 the results should be ea=0.000093 xopt=1.427552 As stated this identical code works in mat lab as a function when reformated ideally, I would be able to set the conditions to the while loop as ea>es and have it calculate as many iterations as necessary to get to a reasonable error percentage.
New Post