From: Nuggety Nanna Date: 2012-12-05T20:00:47+09:00 Subject: Re: Vectors & Surds in Ruby Jan E. wrote in post #1087890: > Hi, > > I think you'll have to be more specific about both questions. > > What exactly do you not understand regarding the Vector class? The > documentation looks pretty good to me: > http://ruby-doc.org/stdlib-1.9.3/libdoc/matrix/rdoc/Vector.html > > What do you mean by "expressing surds"? Are you talking about an exact > represantation of n-th roots as opposed to floating point > approximations? I'm sure there's a library for that. Or simply write > your own class: Root[2, 2] Thanks, for the reply. With the Vector class, I am unsure how to set the vector a value, when I try it in irb i am given the error "NameError: uninitialized constant Vector". Also with the expressing surds, I want to take a float value and then express in in it's exact value eg 1.73 as √3. -- Posted via http://www.ruby-forum.com/.