Function and units

Function and units - Messages

#1 Posted: 5/23/2019 3:53:20 PM
mgklein

mgklein

0 likes in 10 posts.

Group: User

Hello.

I've been following several posts for Q&A for some days about my doubts, but one about Units is not yet solved.

I've been trying to solve a simple problem for air density to practice.
The units always stand in my way and I am interested in how you guys would solve this: ignoring units and not using the built-in constants or make everything converted before handling the problem?

My sheet and the problem I'm trying to get the same results are in the images below.

Is there a way to make the function in a programming line ? Like the other software?

Couldn't get the answers by other's questionings.

Thanks in advance.

smath.jpg

smath2.jpg


#2 Posted: 5/23/2019 4:18:03 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Try this.

Barometric formula.sm (9 KiB) downloaded 32 time(s).

2019-05-24_00-17-48.png
Russia ☭ forever, Viacheslav N. Mezentsev
#3 Posted: 5/23/2019 4:23:32 PM
mgklein

mgklein

0 likes in 10 posts.

Group: User

Thanks!

I'll try it myself and see if it works.
#4 Posted: 5/23/2019 4:27:09 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

As for the odesolve block it not yet finished. You must use functions like rkfixed() to solve the ODE.
Russia ☭ forever, Viacheslav N. Mezentsev
#5 Posted: 5/23/2019 4:38:19 PM
mgklein

mgklein

0 likes in 10 posts.

Group: User

Good to know.

I'll try it.

Thanks
#6 Posted: 5/23/2019 7:36:46 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Is there a way to make the function in a programming line ? Like the other software?


Just lost my long reply ...
The only possible programming line is the conditional .
NO software can't calculate otherwise than by segment
because Air is not an homogeneous media. So, NO single
formula, NO ODE can represent.
The attached will give you specific kg/m³ up to 85 km geopotential.
Naturally, don't put any units in there. Append unit in result.
Please don't hesitate for more Q & A

Cheers ... Jean

The 3 segments collected page 6/6

Inst_ISA.sm (138 KiB) downloaded 38 time(s).






#7 Posted: 5/23/2019 8:43:12 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

The 3 segments collected page 6/6


Maybe there was a typo in the attached document.
Please: check, correct as needed.

Typo.PNG

#8 Posted: 5/23/2019 9:36:56 PM
mgklein

mgklein

0 likes in 10 posts.

Group: User

Thanks.

I'll study the document.

#9 Posted: 5/24/2019 12:22:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I'll study the document.


The J(x) upper segment was borrowed directly from Mathcad 11.

  • New Posts New Posts
  • No New Posts No New Posts