Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline tonlok  
#1 Posted : 15 July 2020 19:28:30(UTC)
tonlok

Rank: Newbie

Groups: Registered
Joined: 15/07/2020(UTC)
Posts: 3
United States

Question:

Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?

Thanks and apologies if this is something easy to solve, I have searched all over and have not been able to figure it out.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 15 July 2020 20:23:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: tonlok Go to Quoted Post
Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?

Copy inch²/paste in the empty place holder of result.

Piston.PNG
Offline overlord  
#3 Posted : 15 July 2020 22:58:18(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: tonlok Go to Quoted Post
Question:

Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?

Thanks and apologies if this is something easy to solve, I have searched all over and have not been able to figure it out.


Click to result, you wil notice there will be a placeholder for unit change.
Change it to square inch. It will be calculated as you wanted.

units.png

Edited by user 15 July 2020 23:11:18(UTC)  | Reason: Not specified

thanks 1 user thanked overlord for this useful post.
on 16/07/2020(UTC)
Offline Jean Giraud  
#4 Posted : 15 July 2020 22:59:34(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: tonlok Go to Quoted Post
Calculating Area of a piston when I enter the diameter in inches the output is m2, how do I get the output units to in2?

... or like this in silent unit:
1. x*in ... in from unit panel
2. backspace twice to remove in
3. at this point you see a big round place holder,
4. in that special place holder ... in from unit panel
5. 'in in blue is now silent for result 'in²

Piston SilentUnit.PNG
Offline Jean Giraud  
#5 Posted : 16 July 2020 00:29:56(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
... make it hi-pro algo style.

Piston algo.PNG
Offline tonlok  
#6 Posted : 16 July 2020 00:54:23(UTC)
tonlok

Rank: Newbie

Groups: Registered
Joined: 15/07/2020(UTC)
Posts: 3
United States

I want to thank everyone for their responses.

Cannot figure out the syntax of how to changes the units, I select so the box has the dogleg right then I type in^2 and get the result in not defined like I am adding another step to the calculation? Just typing in also gives me the same error.

Formula 1.JPGFormula 2.JPG

Offline Jean Giraud  
#7 Posted : 16 July 2020 01:10:51(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: tonlok Go to Quoted Post
Cannot figure out the syntax of how to changes the units

... as explained above. Read again.

Piston algo Symbol.PNG
Offline Jean Giraud  
#8 Posted : 16 July 2020 01:30:48(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: tonlok Go to Quoted Post
Cannot figure out the syntax of how to changes the units

Make your project math style [no decoration, no gyzmas ...]
No syntax to freak, code accordingly.

Silent Unit.PNG

Offline Jean Giraud  
#9 Posted : 16 July 2020 01:37:25(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Unit Silent.sm (6kb) downloaded 16 time(s).
Offline overlord  
#10 Posted : 16 July 2020 02:14:52(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: tonlok Go to Quoted Post
I want to thank everyone for their responses.

Cannot figure out the syntax of how to changes the units, I select so the box has the dogleg right then I type in^2 and get the result in not defined like I am adding another step to the calculation? Just typing in also gives me the same error.


After you typed "in", press Tab or double click on inch unit before you enter the square.
So that you will get the inch unit. It should be blue colored.
You can define variables in Smath even by unit names.
I can see your inch unit is not unit. It is a new variable named "in".
I am repeating again, units are blue colored.

Regards.

units2.png

Edited by user 16 July 2020 02:20:05(UTC)  | Reason: Not specified

Offline tonlok  
#11 Posted : 16 July 2020 17:41:59(UTC)
tonlok

Rank: Newbie

Groups: Registered
Joined: 15/07/2020(UTC)
Posts: 3
United States

Once again, I want to thank everyone for their help.

I am going down the path of using the units. Took me a couple of attempts to get the in2 but it is now working

One follow-up, if I set the equation to optimization none to show the numeric values they all default to meters, is there a way to have them shown as inches?


Formula 3.JPG
Offline Jean Giraud  
#12 Posted : 16 July 2020 19:33:43(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: tonlok Go to Quoted Post
One follow-up, if I set the equation to optimization none to show the numeric values they all default to meters, is there a way to have them shown as inches?

Construct as is, it may have to do with your SS version.
Otherwise, you are wrongdoing, not following guidance.

Piston Doctored.PNG
Offline mkraska  
#13 Posted : 17 July 2020 10:29:22(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: tonlok Go to Quoted Post
Once again, I want to thank everyone for their help.

I am going down the path of using the units. Took me a couple of attempts to get the in2 but it is now working

One follow-up, if I set the equation to optimization none to show the numeric values they all default to meters, is there a way to have them shown as inches?


Formula 3.JPG


Definitions are converted to SI upon storage (you see that when you hover with the mouse over a definition. Control of display units is just by the optional placeholder, where you can insert any factor (a unit or pi or any variable name which your result may contain)

Also note that the default display unit depends on optimization. Numeric and symbolic display different units, e.g. 1/s defaults to Hz in numeric optimization and to 1/s in symbolic.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.