Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello, I am inputting a vector into a for loop, but struggling to get a vector back for the output. I would appreciate any help. I could not figure it out from other examples on this forum. I am wondering if I am making an error in the initial step of the for loop?
Thank you.
Solved! Go to Solution.
Here's what Luc is saying put into practice. You don't need a program, you can just have a vectorised function definition.
1. You should attach your Prime Worksheet.
2. Your program for delta.x uses i in the for loop, but you are not using i in the index of the vector. This means your program does not create a vector.
3. I think that if you vectorise the expression after
delta :=
Then delta will be the vector you are looking for, and you don't even need the program for delta.x
Success!
Luc
Here's what Luc is saying put into practice. You don't need a program, you can just have a vectorised function definition.
DJNewman and Luc, thank you so much! DJ, I appreciate you putting up the image. Sorry for not including the worksheet, I will definitely do so in the future!