Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hello there,
I got just one simple problem. Why does when I copy my old program it doesn't work on new program? Here I attach pictures of my matrix program. In the meantime, I don't understand how does the program work actually. Do you mind to explain? Appreciate for the help. Thanks.
Solved! Go to Solution.
@Adlil wrote:
Hello there,
I got just one simple problem. Why does when I copy my old program it doesn't work on new program? Here I attach pictures of my matrix program. In the meantime, I don't understand how does the program work actually. Do you mind to explain? Appreciate for the help. Thanks.
It's difficult to tell without the worksheets, but I'm going to guess that you've copied your expressions into a worksheet that has ORIGIN:=0 from a worksheet that has ORIGIN:=1.
Stuart
@Adlil wrote:
Hello there,
I got just one simple problem. Why does when I copy my old program it doesn't work on new program? Here I attach pictures of my matrix program. In the meantime, I don't understand how does the program work actually. Do you mind to explain? Appreciate for the help. Thanks.
It's difficult to tell without the worksheets, but I'm going to guess that you've copied your expressions into a worksheet that has ORIGIN:=0 from a worksheet that has ORIGIN:=1.
Stuart
Thank you for your reply. Yup I also suspected that. Here I attached both of my programs. The old program is the one with my name 'Мухамад Адлил' and it's located at exercise no.8 (задание 8).While the new program is written 'new' . I hope my explanation is clear, pardon for my English.
Even without seeing the sheet Stuart guessed correctly what the problem might be and as you also suspected that a different value for ORIGIN is the cause of the problem (and it actually is), where do you still have problems???
You can always check which value of ORIGIN is currently in use by evaluating this system variable by typing ORIGIN =
You have at least three options to make your program work:
You may notice that in the last program I streamlined the last loop a little bit, getting rid of the variable C.
This last program is also written in a way so that it works no matter what the dimensions of A an B actually are (as long as the number of columns in A is equal to number of elements/rows in vector B)
Of course normally you would turn the program into a function with A and B as its arguments. But in this case it seems to be just an exercise in programming in Mathcad.
BTW, here is an even shorter version of the program - getting rid of the intermediate matrix k as well:
Thank you so much for the help. Your explanation help me a lot. I've been experimenting with the solutions that you gave. Appreciate it. May God bless you.
Regards,
Adlil.