Matrix and Temperature unit

Matrix and Temperature unit - Defining Matrix and working with Temperature unit - Messages

#1 Posted: 12/29/2024 6:38:32 PM
Sarvesh Ambekar

Sarvesh Ambekar

0 likes in 5 posts.

Group: User

Hello Experts,

I am struggling with a couple of issues, and maybe you can guide me.
1. Is there any solution for building a matrix without defining its size within a loop?
2. My second struggle is while using variables with temperature units. Is it possible to force the use of a specific temperature unit, '°C', instead of 'K', while storing the values of the variable in the matrix?
3. Can a specific temperature unit (Centigrade) be used uniformly without switching back and forth between Kelvin and Centigrade within a worksheet?

I appreciate any help you can provide.






#2 Posted: 12/29/2024 11:38:07 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Hello Experts,

I am struggling with a couple of issues, and maybe you can guide me.
1. Is there any solution for building a matrix without defining its size within a loop?
2. My second struggle is while using variables with temperature units. Is it possible to force the use of a specific temperature unit, '°C', instead of 'K', while storing the values of the variable in the matrix?
3. Can a specific temperature unit (Centigrade) be used uniformly without switching back and forth between Kelvin and Centigrade within a worksheet?

I appreciate any help you can provide.



1. A: matrix(m,n) creates a matrix with size m x n with all entries zero.
2. Any storage of quantities with units is preceeded by converting the value to base units (Kelvin in this case). If you want to display in other units, this has to be enforced upon display. See the chapter on units and in particular the section on temperature units in the attached pdf.
3. You can't modify the default unit for display. You always have to specify the display unit, if it is non-default.

Introduction to SMath Studio.pdf (1 MiB) downloaded 46 time(s).

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 1/4/2025 8:22:48 PM
Sarvesh Ambekar

Sarvesh Ambekar

0 likes in 5 posts.

Group: User

Dear Martin,
Greetings!!

Thank you for your guidance and for sharing the document. It is very useful.

However, my struggle doesn't seem to be over. Equations-solving functions like solve, roots, and Solve do not return any answer except for the 'roots' function when solved without units.
Can you please provide your expert opinion on this situation?

Screenshot 2025-01-04 135330.png
#4 Posted: 1/5/2025 7:39:49 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Please attach the .sm file.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts