Hey, another question. This might be a bit tricky to explain, so please bear with me. I'm reading through two tables to get values and applying operations to them. Usually I'm using the old answer in the new computation to speed things up, however for certain values this doesn't help- in fact it hurts considerably. Let's say I have a program called ng that takes a different initial guess and I want to use it for x values > .07.
The structure should be something like:
I have two questions, first if the statement is false I want it to proceed as if that line wasn't there. How do I do that? Second, for Do[] I need to specify a number, If I want it to go through the whole list, would I just insert my x list there?
Thanks!
The structure should be something like:
Code:
If[x>-0.07,Do[ng;, ],];
I have two questions, first if the statement is false I want it to proceed as if that line wasn't there. How do I do that? Second, for Do[] I need to specify a number, If I want it to go through the whole list, would I just insert my x list there?
Thanks!