数学 [英] maths

查看:68
本文介绍了数学的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些数学,例如将方程式解析为多态的

树,矩阵等等。我已经用C语言完成了它,一团糟,但现在我想要移植它

到低级别的东西(读:少杂乱)。 C ++很好,但是我会得到很多改进,即关于多态树(树节点,节点可以



要么是乘法,减法,矩阵等)?任何人都有任何

建议,或一些关于一个好的,现代的,支持良好的

语言的一些公正的想法。 C#似乎在这个领域有很大的支持,没有TYPEDEF

AGHHHH!大声笑。 Haskell很好,但没有新闻组支持。也许是Java?


干杯

dave


-

亚里士多德说有些人只是b $ b只适合做奴隶。我没有和b $ b相矛盾。但我拒绝奴隶制

因为我认为没有人适合成为主人

CS Lewis

i''m looking to do some maths, such as parsing equations into polymorphic
trees, matrices, etc. I''ve done it in C, a mess, but now i want to port it
to something less low level (read: less messy). C++ is good, but will i get
much improvement, ie regarding the polymorphic trees (trees whoses node can
be
either a multiplication, subtraction, matrix etc)? Anyone have any
suggestions, or some unbiased ideas regarding a good, modern, well supported
language to try. C# seems to have awful support in this area, no TYPEDEF
AGHHHH! lol. Haskell is good, no newsgroup support though. Maybe Java?

Cheers
dave

--
"Aristotle said that some people were
only fit to be slaves. I do not
contradict him. But I reject slavery
becase I see no people fit to be masters"
C.S Lewis

推荐答案

David Sobey< ma ********** @ hotmail.com>写道:
David Sobey <ma**********@hotmail.com> wrote:
我正在寻找一些数学,例如将方程解析成多态的树,矩阵等等。我已经用C语言完成了它,一团糟,但现在我想将它移植到低级别的东西(阅读:不那么凌乱)。 C ++是好的,但是我会得到很多改进,即关于多态树(节点的树可以是乘法,减法,矩阵等)?任何人都有任何建议,或者一些关于良好,现代,支持良好的语言的一些公正的想法。 C#似乎在这方面有很大的支持,没有TYPEDEF
AGHHHH!大声笑。 Haskell很好,但没有新闻组支持。也许Java?
i''m looking to do some maths, such as parsing equations into polymorphic
trees, matrices, etc. I''ve done it in C, a mess, but now i want to port it
to something less low level (read: less messy). C++ is good, but will i get
much improvement, ie regarding the polymorphic trees (trees whoses node can
be
either a multiplication, subtraction, matrix etc)? Anyone have any
suggestions, or some unbiased ideas regarding a good, modern, well supported
language to try. C# seems to have awful support in this area, no TYPEDEF
AGHHHH! lol. Haskell is good, no newsgroup support though. Maybe Java?




好​​吧,Java也没有typedef。你真的*需要* typedef吗?

如果这是你不明显的要求之一,也许你可以列出你的其他人吗?


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet

如果回复该群组,请不要给我发邮件



Well, Java doesn''t have typedef either. Do you really *need* typedef?
If that''s one of your non-obvious requirements, perhaps you could list
your others?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


好吧,我使用typedef来制作我的基本数据结构,即矩阵。我不想b $ b想要一遍又一遍地写int [] []。而且我真的不想

将每个节点(即乘法或加法节点)作为一个类,我会认为这是最好的b / b
它是最好的将它们作为复合数据类型。所以我不认为这个

可以在c#中完成。你知道我要去哪儿吗?


欢呼

dave
well, i used typedefs to make my basic data structures, ie matrices. i don''t
want to be writing int[][] over and over again. and i don''t really want to
have every node (ie a multiplication or addition node) as a class, i''d think
it''s best to just have them as a compound data type. so i don''t think this
can be done in c#. do you see where i''m heading with this?

cheers
dave


你好大卫,


也许定义你自己的结构(具有价值语义的价值类型)可以

是一个选项...


希望这会有所帮助,

问候,

Leon


" David Sobey"写道:
Hi David,

Maybe defining your own structures (value types with value semantics) could
be an option...

Hope this helps,
Regards,
Leon

"David Sobey" wrote:
好吧,我使用typedef来制作我的基本数据结构,即矩阵。我不想一遍又一遍地写int [] []。而且我真的不想将每个节点(即乘法或加法节点)作为一个类,我认为最好将它们作为复合数据类型。所以我不认为这可以在c#中完成。你知道我要去哪里吗?

欢呼
dave
well, i used typedefs to make my basic data structures, ie matrices. i don''t
want to be writing int[][] over and over again. and i don''t really want to
have every node (ie a multiplication or addition node) as a class, i''d think
it''s best to just have them as a compound data type. so i don''t think this
can be done in c#. do you see where i''m heading with this?

cheers
dave



这篇关于数学的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆