Skip to main content
1-Visitor
October 23, 2019
Solved

Function of function with units

  • October 23, 2019
  • 4 replies
  • 2696 views

Dear members of the mathcad community,

 

I want to define a function within a function by considering the units of measurement.

The function looks like g(f(x))= f(x)*a where "a" is a parameter.

I know that there are other posts on the topic but unfortunately I could not solve the problem.

Attached you find an example of my calculation.

I would really appreciate your advice.

Thank-you very much.

 

Best regards.

 

Enrico

 

Best answer by terryhendicott

Hi Enrico

 

Here is your file all now working.

 

Cheers

Terry

4 replies

23-Emerald IV
October 23, 2019

 Maybe you forgot to attach your file?

 

Luc

ebelmonte1-VisitorAuthor
1-Visitor
October 23, 2019

Dear Luc,

Thank-you for pointing that out. There was a problem by the upload.

Now you find the attachment.

Best Regards

23-Emerald IV
October 23, 2019

Can't see your file, as I don't have Mathcad 15. Maybe you could save as Mathcad 11 (.mcd)...

But this may be of help.

 

Success!

Luc

21-Topaz II
October 23, 2019

Hi Enrico

 

Here is your file all now working.

 

Cheers

Terry

23-Emerald I
October 23, 2019

Put the pressure function as the argument of the force:

 

F(p(a))

21-Topaz II
October 23, 2019

Hi,

 

There is also a small issue you should be aware of called "Vectorize".

This is applying a function to a column vector in an element by element fashion.

Look it up in help.

 

It does not apply to the equations in your sheet, but you should be made aware with different definitions it may be necessary.

 

Regards

Terry