Matrix and Temperature unit

Matrix and Temperature unit - Defining Matrix and working with Temperature unit - 消息

#1 已发布: 2024/12/29 18:38:32
Sarvesh Ambekar

Sarvesh Ambekar

0个赞,共5个帖子。

组: 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 已发布: 2024/12/29 23:38:07
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.18 MiB)已下载 4893 次。

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#3 已发布: 2025/1/4 20:22:48
Sarvesh Ambekar

Sarvesh Ambekar

0个赞,共5个帖子。

组: 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 已发布: 2025/1/5 19:39:49
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Please attach the .sm file.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • 有新帖
  • 无新帖