C function to calculate angle on circle

In Progress Posted 7 years ago Paid on delivery
In Progress Paid on delivery

Looking for a C function that is given two arguments : distance on X axis (blue numbers on image) and radius (R).

The function should return a float which is an angle (in radians).

For example :

getAngle(2,R);

returns angle between A&B as shown on the image.

getAngle(3,R);

returns angle between A&C as shown on the image.

getAngle(5,R);

returns angle between A&D as shown on the image.

To verify the function works correctly, this should work :

angle=getAngle(5,R);

xpos=R*cos(angle);

xpos should be 5 in this example

C Programming Software Architecture

Project ID: #12980032

About the project

15 proposals Remote project Active 7 years ago

15 freelancers are bidding on average $21 for this job

wangbeizou

Hello. How are you. I have read and understood the project. I'm an Expert in Data Structures and Algorithms. And I know well ; Java ,C/C++, Python ,PHP. I'm interested this project. So, firstly I want to discu More

$30 USD in 1 day
(150 Reviews)
6.3
iridescent2x15

I m software engineer. I have read the description and I would like to work for you. For further details please inbox me. Thank you

$25 USD in 1 day
(59 Reviews)
6.1
Weebside

Hello, Sir Weebside Inc. is a professional freelancer service provided to worthy clients like you. We can provide our best developers to provide you High-Quality Product with 100% Delivery Rate, 100% Satisfaction. More

$15 USD in 1 day
(151 Reviews)
6.1
abhijitbuet

15 minutes task for me to complete. Can do it really within 15 minutes :) ...............................................................

$10 USD in 1 day
(86 Reviews)
5.8
chungtranduc89

This is tiny project. Thank you......................................................................................................................

$25 USD in 1 day
(9 Reviews)
4.6
celalaybar

Hello. Thank you very much for taking time to read my proposal. I can help you. You can check my portfolio and reviews. We can discuss further details. Hopefully, both of us will be happy after the jo More

$11 USD in 1 day
(12 Reviews)
3.9
vw8150693vw

Hi, I have Bachelor degree in computer engineering and I have done many projects in C , you can check that I have done many projects on this site. I have excellent experience in C language I will ensure the work to be More

$25 USD in 1 day
(13 Reviews)
3.5
anson418

Hi there, my name is Anson and I am a CS major from UC Davis. I should be able to deliver this to you within the hour. Contact me so we can confirm and get started.

$30 USD in 1 day
(3 Reviews)
2.5
rj291988

Hello Mate We are an experienced team that is focused on growth through doing things differently. Since inception we have focused on delivering projects which are benchmarked by its quality. We say what we can delive More

$30 USD in 1 day
(1 Review)
1.5
seankahn

There are two anglesfor each input x value, one for the lower halfcircle, one for the upper. which one do you want? generally : float returnAngle ( float d, float r) { float x = d; float y = sqrt(r^2 - d^2); More

$25 USD in 10 days
(1 Review)
2.4
dannygist

Haven read the job description carefully, I assure you that I can get the project done and delivered on time even within the stipulated budget. As an experienced mathematician, I have been able to fix problems pertaini More

$10 USD in 1 day
(0 Reviews)
0.0
Gehadelkot

hello i did some projects with c programming and i would like to help you with your project best regards Gehad

$10 USD in 1 day
(0 Reviews)
0.0
censuraa

A proposal has not yet been provided

$25 USD in 1 day
(0 Reviews)
0.0