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 zigoreto  
#1 Posted : 31 January 2020 14:10:12(UTC)
zigoreto

Rank: Newbie

Groups: Registered
Joined: 21/01/2020(UTC)
Posts: 6
Man
Spain

Hi all!

Maybe this is a stupid question, but I'm just starting with SMath.

I searched also in forums but didn't find a similar topic..

I perform my calculations in SMath using always units, very interesting and useful. But now I need just the number, the value without units. What I do now is just dividing it by '1' and the unit XD

Any other method or function more professional? :P

Thanks a lot!

Zigor

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

Offline mkraska  
#2 Posted : 31 January 2020 14:33:28(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: zigoreto Go to Quoted Post
Hi all!

Maybe this is a stupid question, but I'm just starting with SMath.

I searched also in forums but didn't find a similar topic..

I perform my calculations in SMath using always units, very interesting and useful. But now I need just the number, the value without units. What I do now is just dividing it by '1' and the unit XD



In fact, this is the only professional way to do it, because this way you can control and display the unit to be used. Just suppressing the unit would force the reader to make assumptions on what unit has been used to derive the numerical value. The experienced reader knows that always base units are used (e.g. for plotting) but it is better to explicitly specify them.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline zigoreto  
#3 Posted : 31 January 2020 15:02:40(UTC)
zigoreto

Rank: Newbie

Groups: Registered
Joined: 21/01/2020(UTC)
Posts: 6
Man
Spain

Thanks, Martin..

It's exactly the way I work.

But now I want to export data to an Excel sheet, and afterwards to treat that data as numbers without unit (Excel works like that).. so instead removing the unit in Excel, I was just wondering if in SMath would be a function to do it before exporting Good

Best regards,

Zigor
Offline mkraska  
#4 Posted : 31 January 2020 15:30:23(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1124 time(s) in 721 post(s)
Assuming you have a table with columnwise uniform units, then the following approach provides full control:

exportdata.sm (5kb) downloaded 19 time(s).
exportdata.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 01/02/2020(UTC)
Offline Jean Giraud  
#5 Posted : 31 January 2020 17:51:27(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: zigoreto Go to Quoted Post
I perform my calculations in SMath using always units,

That is incoherent with unitless maths.
1. It can't be QA whereas the unit system sub-processes.
2. Advanced maths [symbolic, solvers ..] don't take units.
... I'm immune to "thunder" from contradictory comments !
Engineering formulas are already given in corresponding units [SI , ...]
Offline Jean Giraud  
#6 Posted : 31 January 2020 18:07:07(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Engineering formulas are already given in corresponding units [SI , ...]

... or construct wrt the units you want.
... export table w/o header

Inst_Colebrook Pipe Data.sm (62kb) downloaded 35 time(s).
Offline Jean Giraud  
#7 Posted : 31 January 2020 19:00:29(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... or construct wrt the units you want.


1. Vincenti is coded 'km' superb
2. Arc length is unary maths ... make it user c/w unit.

Angle Vincenty Earth Distance [Mike].sm (41kb) downloaded 19 time(s).
Integrate Compendium_4 ArcLength Parabola-Cubic.sm (21kb) downloaded 21 time(s).
Users browsing this topic
Guest
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.