Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
I am trying to get three output from the same preogram. is that posible?
Hinnd Naser wrote:
I am trying to get three output from the same program. is that posible?
Yes, just a matter of programinging for that end.
Yes, just a matter of programinging for that end.
While that answer is undeniably correct, I don't think it's all that useful!
Richard Jackson wrote:
Yes, just a matter of programinging for that end.
While that answer is undeniably correct, I don't think it's all that useful!
Quite correct in this "Théâtre des variétés" !
Yes, but only if the outputs all have the same units. Make the last line of the program a vector with the desired outputs.
Hi,
can use more than one input, and get an output for each one.
Thank you
Sure. If Pointless is a function definition just pass the function more than one argument. Or if Pointless is just a variable assignment rather than a function definition, it will pick up on any variables defined prior to the program in the worksheet.
Hi,
The examples you provided at the time where very helpful. However at the moment I am looking at an input coming from a matrix, say x value will be from 1 to 100, if I run for example the pointless program in the end I will get the answer for the last run, but I need instead the output for all x values from 1 to 100?
Thanks in advance for any help.
Please provide a worksheet of you data. Simple example shown below.
Mike
Hi,
See attached a simple example of what I would like to do, and what I get from mathcad, I am unable to change the units of the output either.
Hinnd
I haven't got Prime at the moment, but you can convert the file below.
Firstly check that the output of the program is in Matrix instead of Table.
Obviously I can't have mixed unit arrays in M15, so I have omited the units.
Mike
Does that mean I am unable to use mix of units with programs whaich have many inputs??? as at the moment my current program doesnt work ( I am getting the last run), and I have no control what so ever on the output units!!!
Does that mean I am unable to use mix of units with programs whaich have many inputs??? as at the moment my current program doesnt work ( I am getting the last run), and I have no control what so ever on the output units!!!
No, Mathcad Prime allows mixed unit arrays. Have you converted my worksheet to Prime?
Mike
Hi,
Sorry the MP1 was crashing, however I got a result but I cannt change the output unit to bar & m^3/hr.
and one of my equations is V, and MP1 consider it as a unit V, not as a parameter!!!!
I'm not 100% certain, but I'm sure Mathcad Prime defaults to the standard dimension system when dealing with Mixed units arrays. It seems to be defaulting to SI.
Mike
It's not clear what you want. Are you solving for the product of the two terms? Or just returning M and N?
Try adding one line to you program:
No, I am not solving the product of two terms, I am returnig M and N.
HinndNaser wrote:
No, I am not solving the product of two terms, I am returnig M and N.
So why do you need to program it?
I agree with Fred, unless your trying to learn the principles of programming, I would use a range as Fred has.
Mike
Thank you, for your help.
I went with your example for example sake, My original program has many inputs, I need to run the calcs four times min (each run has six complex equations) , for differnt set of input. at the moment I am using MP1 table for inputs i.e. I am using the loop so the inputs will be read from the table depending on the the counter value i.
The errors I am getting is:
Thanks for your help anyway, I will see what PTC have to say about these issues.
Regards,
Hinnd
The errors I am getting is:
- I am getting the result for the last run.
- One of my equations is V, but when I type V in the result or return step, MP1 considering V as a unit (volt).
- I am unable to change the units of the output, for example (kPa to bar) and (°C to °F).
Thanks for your help anyway, I will see what PTC have to say about these issues.
Good luck.
Mike
Hi,
I found a perfect example in mathcad 15 help tap, it is just what I am looking for (which is a miracl), however, when I re write the same program I don't get the same result. I will attach it soon.
Can you please upload your latest worksheet?
Mike
Hi,
Below example from Mathcad 15, please note that I cant get the same answer.
Like the attached? You hadn't incluided the Matrix transpose operator.
Mike
Go a head and have a try, and show me!!
Double left click and select Display Options and check the Expand nested arrays box.
Mike