如何按字母顺序排序枫树中的向量列表
给定矢量列表,我想按某个(字母类似)顺序对这些向量进行排序。 例如,向量为[5/4、5/2、1/3、2],[1、5/2、3/5、1.5],[5/4、5/4、5/4、3/5、1.5 ]和[5/4、5/2、1/4、2]。我们想将它们分类为[1、5/2、3/5、1.5],[5/4、5/4、3/5、1.5],[5/4、5/4、5/2、1/4, 2]和[5/4、5/2、1/3、2]。
如何使用Maple完成此任务?
Given a list of vectors, I want to sort these vectors in a certain (alphabetic like) order.
For example, the vectors are [5/4, 5/2, 1/3, 2], [1, 5/2, 3/5, 1.5], [5/4, 5/4, 3/5, 1.5] and [5/4, 5/2, 1/4, 2]. We would like to sort them as [1, 5/2, 3/5, 1.5], [5/4, 5/4, 3/5, 1.5], [5/4, 5/2, 1/4, 2] and [5/4, 5/2, 1/3, 2].
How to use maple to fulfill this task?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)