Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Heres a little MathCad 15 problem I would welcome some help with - I have spent a couple of days trying to get a MonteCarlo sim to work and have traced the problem to a simple vector filling function
If I pass numbers to a function to put into a vector - the fourth element in the vector becomes a {4,1} sub vector containing the first 3 elements plus a zero. Problem is reproducable and occurs on 64 bit Win 7 and 32 bit XP machines
I have attached a very short worksheet that illustrates the problem
Any thoughts anyone
Ian
Solved! Go to Solution.
Have a look at the attached. You are using d as a argument and then calling it inside the program.
Mike
Have a look at the attached. You are using d as a argument and then calling it inside the program.
Mike
Why bother with the fuction in the first place?
Mike
Why bother with the fuction in the first place?
The Montecarlo funtion needs a function with a vector input - not a list of variables seperated with commas, so I was just tucking all the parameters into a vector - or have I got that wrong too ??
You could simple use the function as shown in this worksheet. Vec has been defined in the collasped area.
Mike
Mike
Thanks - I have been using MCad for more years than I can remember - I can't believe I made such an elementary mistake and struggled to solve it for almost a day ! Not seeing the wood for the trees.
Thank you for a clear pair of eyes !
Ian
No problem at all. Sometimes it is much harder to find your own mistakes.
Mike