Technical Help & Discussion > Website Design & Programming

Math.Cos

<< < (2/3) > >>

Hiatus:
Wow, excellent! Thank you!

You are a God when it comes to programming! ;) :D

Dack:
Well people have looked at some of the code I've written and said something similar.

(I think it was &quot;God almighty, who wrote that!&quot; ;) )

Though if you saw what I'm currently writing the code would scare you :) (does pointers to vectors of pointers to classes mean anything to you?) - currently running at about 20,000 lines of code, and they've just changed the interface spec to it.

Hiatus:

--- Quote ---(does pointers to vectors of pointers to classes mean anything to you?)
--- End quote ---


Nope, lol. We just learned about &quot;Cases&quot; today in our VB lecture, and &quot;If&quot; statements in our lecture before that. I already know how to do all that stuff though so I was very bored. I think I've heard of vectors b4, but I don't quite remember...


**Since ur online now, is there any way to do &quot;tan ^ -1&quot;?

Dack:
Vectors are part of the STL in C++.

If you mean arctan then you could use the ATN function :)

More info on useful algorithms over on:
http://www.vb-helper.com/index_algorithms.html

Hiatus:
Ah, I don't know much about C++...I tried to learn awhile ago, but it was too complicated for me at the time.

I think &quot;Atn&quot; is for VB6. I tried &quot;Math.Atan&quot; which I assumed was the same thing for VB.NET, but I can't seem to get it working. I'm trying to get the angle of 5.364556962.

I have:

Alpha = FormatNumber(Math.Atan(Theta), 2)

I dunno whats wrong with it....on my calculator I just punch in the number, then push shift and the tan button. That would make it tan-1.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version