You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue I currently have because I was able to correct it, but I know other students have had the same issue so I thought I would post about it in case someone else had the same problem. My initial plots for every converging method was just a horizontal line at the initial position of two meters. This was because I had missed a set of brackets in my smd function specifically in this line.
I originally didn't include the set of brackets after the first set of parenthesis, and this caused my function to not be able to run properly, since the values were not properly stored in an array. I also found it helpful to have a different for loop for every convergence method in problem 3.
for i in range(N_euler-1):
num_euler[i+1] = eulerstep(num_euler[i], smd, dt_euler)
print(i)
Like this but for every method. Finally, it is worth noting that if you have a problem that is identical for every one of your methods. Then the issue is likely in your smd function, but that is one of the few pieces of code that affects all of your methods.
The text was updated successfully, but these errors were encountered:
This is not an issue I currently have because I was able to correct it, but I know other students have had the same issue so I thought I would post about it in case someone else had the same problem. My initial plots for every converging method was just a horizontal line at the initial position of two meters. This was because I had missed a set of brackets in my smd function specifically in this line.
I originally didn't include the set of brackets after the first set of parenthesis, and this caused my function to not be able to run properly, since the values were not properly stored in an array. I also found it helpful to have a different for loop for every convergence method in problem 3.
for i in range(N_euler-1):
num_euler[i+1] = eulerstep(num_euler[i], smd, dt_euler)
print(i)
Like this but for every method. Finally, it is worth noting that if you have a problem that is identical for every one of your methods. Then the issue is likely in your smd function, but that is one of the few pieces of code that affects all of your methods.
The text was updated successfully, but these errors were encountered: