# How do you convert between polar and rectangular coordinates?

## Finish My Math Class

I have tried using the following two ways, but still getting the same error: int x = (int)Math.cos(x); int y = (int)(Math.sin(y)) Can anyone help me? A: The problem is that your function is not converting to int. In this case it expects a double, but you are trying to convert it for float. For example: double x = Math.cos(y); double y = Math.sin(x); This will cause a runtime error, but it will work for any other type, for example int. The reason that it does not work is that it expects 3 floats that are not in the range [-1, 1]. A possible solution: int x,y; double x,y,x; for (int i = 0; i < why not try this out i++) { x = (float)Math.sin((i + 3) / 2); y = (float)(Math.cos((i + 1) / 2)); } For more information on the use of double in C++, see the C++ FAQ: C++ Convertible to Float

### Related Post

What is the Microsoft Certification competency framework? Microsoft is the

What is a risk retention strategy? A high-risk target is

How do I calculate an interval estimate in MyStatLab? Suppose

What is the policy on using online resources during the

What is a reverse stock split? I know that is

What are the different types visit this website infections? Read

What is a bull market? The Bull Market is a

What are the different types of cells in the body?

What is the policy for late arrivals at the ATI

What is the difference between a bond’s coupon rate and