How to Combine Vector and Matrix?

How to Combine Vector and Matrix? - 消息

#1 已发布: 2023/7/16 22:17:32
netsonicyxf

netsonicyxf

2个赞,共79个帖子。

组: User

1.png
Combine Vector and Matrix.sm (5.68 KiB)已下载 1509 次。
#2 已发布: 2023/7/16 23:20:35
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. You can use augment and stack.

Clipboard01.png

Combine Vector and Matrix.sm (9.38 KiB)已下载 1516 次。

Best regards.
Alvaro.
1位用户喜欢此帖子
netsonicyxf 2023/7/17 01:16:00
#3 已发布: 2023/7/17 01:30:46
netsonicyxf

netsonicyxf

2个赞,共79个帖子。

组: User

Wrote

Hi. You can use augment and stack.

Clipboard01.png

Combine Vector and Matrix.sm (9.38 KiB)已下载 1516 次。

Best regards.
Alvaro.



Thank you.

It looks to me that in order to combine 2 lists, the 1st list must be in "list" format (u=[0.1 0.2]) instead of "range" format (u=[0.1..0.2]).

Is there other method to combine list if the the 1st list is in "range" format?

1.png

Combine Vector and Matrix.sm (7.62 KiB)已下载 1473 次。
#4 已发布: 2023/7/17 07:11:47
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Some project will produce immensely long nests of solutions.
In such instances, use UnestV(data), UnestH(data) utilities.
#5 已发布: 2023/7/17 12:02:36
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

... It looks to me that in order to combine 2 lists, the 1st list must be in "list" format (u=[0.1 0.2]) instead of "range" format (u=[0.1..0.2]).

Is there other method to combine list if the 1st list is in "range" format?



Mathcad did have 'matrix' objects and 'range' objects, which were different. But in SMath the function range(#,#) or range(#,#,#) are matrix constructors and do not represent anything other than an matrices. There are no 'vectors' either, since they are simply matrices with a single column and one or more rows.

Best regards.
Alvaro
#6 已发布: 2023/7/17 13:49:23
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Is there other method to combine list if the the 1st list is in "range" format ?


You can combine both directions.
They don't need be equally meshed.

Image Gaussian Spot.sm (30.39 KiB)已下载 1477 次。

#7 已发布: 2023/7/18 04:19:16
netsonicyxf

netsonicyxf

2个赞,共79个帖子。

组: User

Wrote

Wrote

Is there other method to combine list if the the 1st list is in "range" format ?


You can combine both directions.
They don't need be equally meshed.

Image Gaussian Spot.sm (30.39 KiB)已下载 1477 次。



Hi Jean

Thank you for the example, but it's litle bit overwhelming for me.
Do you happen to have a simpler example?
#8 已发布: 2023/7/18 09:37:04
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Thank you for the example, but it's little bit overwhelming for me.
Do you happen to have a simpler example
?


The 2D code is unique. You can have it algo style otherwise:
Sym(phi(x,y),L,H,n) for local command line.
Set ... Planet:=[0.25*Cir spot spot]
so to see the red circle visible on the image.
Cheers ... Jean.

Image Spot Satellites Copy.sm (121.55 KiB)已下载 1455 次。

#9 已发布: 2023/7/18 10:18:12
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

The 2D code is unique. You can have it algo style otherwise:


Delicious Patch Work ... fully command line.

Pattern Patch Work.sm (11.05 KiB)已下载 1474 次。
#10 已发布: 2023/7/20 11:45:38
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

Is there other method to combine list if the the 1st list is in "range" format?


Your u range is not 0.1 and 0.2.
It is only 0.1, because range(2) increment is 1.
So in order to make it 0.1,0.2 you should use range(3).
Here is two range objects augmented.

Regards

listrangeaugment.png
1位用户喜欢此帖子
netsonicyxf 2023/8/8 10:29:00
  • 有新帖
  • 无新帖