Android Calculator App: Convert Rectangular-Polar

  • Thread starter Thread starter idahoblaster
  • Start date Start date
  • Tags Tags
    Polar Rectangular
Click For Summary
SUMMARY

The discussion centers on the development of an Android calculator app designed to convert between rectangular and polar coordinates. Key formulas provided include the conversion from rectangular (x, y) to polar (r, a) using r = sqrt(x^2 + y^2) and a = arctan(y/x), and the reverse conversion from polar (r, a) to rectangular (x, y) using x = r*cos(a) and y = r*sin(a). The app requires specific keys for conversion: ->R for rectangular to polar and ->P for polar to rectangular.

PREREQUISITES
  • Understanding of trigonometric functions (sine, cosine, arctangent)
  • Familiarity with the mathematical concepts of rectangular and polar coordinates
  • Basic knowledge of Android app development
  • Experience with Java or Kotlin programming languages
NEXT STEPS
  • Research Android development frameworks for building calculator apps
  • Learn about implementing mathematical functions in Java or Kotlin
  • Explore user interface design principles for Android applications
  • Study the Android SDK documentation for handling user input and output
USEFUL FOR

Android developers, mathematics educators, and anyone interested in creating or using a calculator app for converting between rectangular and polar coordinates.

idahoblaster
Messages
1
Reaction score
0
I need an android calculator app that will convert between rectangular and polar. I need these keys: ->R and ->P
 
Physics news on Phys.org
Why do you need an app?

If you have (x,y), to get (r,a) just do:
r = sqrt(x^2 + y^2)
a = arctan(y/x)

If you are in (r,a), to get to (x,y), just do:
x = r*cos(a)
y = r*sin(a)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
10
Views
6K
Replies
22
Views
3K
  • · Replies 15 ·
Replies
15
Views
5K
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
2K