Jump to content

completethesqr

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by completethesqr

  1. Questions like these can only be answered with "what do you want to do?"

     

    If you want to design computer applications, continuing Java or learning C++ is a good start. If you want to do modeling, there's languages for that, too (I don't know any off my head but I think Python is one).

     

    My only suggestion is to pick a language that will allow you to do most everything you want and hammer away at it. Do a project each week, or try to figure out someone's code. Dive right in. I found that really knowing one language was enough and made learning other languages very easy. Ifs, and whiles, and for loops all pretty much do the same thing in every language. Just the syntax might be different.

     

    If you learn the meat-and-potatoes of programming -- the stuff that is in mostly every language -- then all that's left to learn in regard to other languages is language-specific stuff. For example, say you're a master of C++ but for a class or work you need to switch to Java. You know Object Oriented programming, so all you'll need to learn is the Java-specific classes, methods, and stuff like that.

     

    Good luck!

  2. Hi i am new on the forum. I am making a smartphone application and this

    is the first time i’m working with algorithms.

    I am looking for algorithms that can convert x and y value on a Cartesian plane (x,y) to a angle. The angle can be 0-360 degrees or 0-2π radians.

     

     

    Does anyoneknow of such algorithms?

    I have looked for geometric algorithms on Google. I have also found a list of

    algorithms on Wikipedia, but no luck finding this particular algorithm.

     

    Also are there search databases that solely contain algorithms?

     

    Below is a visual presentation of the conversion the algorithm has to do:

     

    34g6g3m.jpg

     

     

    Thank you in Advance!

     

    Hi, Jeffrey. Another poster touched on it, but I'll try to expound a little bit because you said this area of math is a bit above your level of understanding.

     

    1.) So first thing is first: we need to collect the points from (I'm assuming) a user.

     

    2.) Then we'd set up an equation. Let N = angle

     

    Tan N = y/x

     

    3.) Solve for N

     

    N = Tan -1* (y/x)

     

    * "Tan -1" is supposed to read "inverse tangent of" but I'm unsure of how to notate it on a keyboard.

     

    4.) Evaluate above equation.

     

    Example: user puts in (1, 1).

     

    Tan N = 1/1

     

    N = Tan-1 (1/1)

     

    N = 45 (degrees).

     

    Hope this helps.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.