Hi, i am trying to make 4 simple programs that include mathematical functions and cannot seem to either include the right functions or find the appropriate directory to include in my program. I am using Carbon Application builder and want to make a program with the ability to do this:
1. Input a value in degrees, convert it to radians, compute and print the sine, cosine, and tangent of that angle.
2. Evaluate the polynomial x3 -3X + 2 for a given value of x.
3. Given two resistors: if they are connected in series the total resistance is R1+R2. and if they are connected in parallel the total resistance is R1*R2/R1 + R2.
4. Given an amount of money between one penny and one dollar, show how to make up that amount in the least number of coins.
example: 17 cents is 0 quarters
1 dime
1 nickel
2 pennies
What are the functions that i should be including?? please help
i am using #include <Carbon/Carbon.h> and #include <math.h> and I'm also using #include <fp.h> these are supposed to be the correct mac functions to work, but i still can't make it work. PLEASE HELP me, i need to get them finished by tomorrow.....
Thanks....
1. Input a value in degrees, convert it to radians, compute and print the sine, cosine, and tangent of that angle.
2. Evaluate the polynomial x3 -3X + 2 for a given value of x.
3. Given two resistors: if they are connected in series the total resistance is R1+R2. and if they are connected in parallel the total resistance is R1*R2/R1 + R2.
4. Given an amount of money between one penny and one dollar, show how to make up that amount in the least number of coins.
example: 17 cents is 0 quarters
1 dime
1 nickel
2 pennies
What are the functions that i should be including?? please help
i am using #include <Carbon/Carbon.h> and #include <math.h> and I'm also using #include <fp.h> these are supposed to be the correct mac functions to work, but i still can't make it work. PLEASE HELP me, i need to get them finished by tomorrow.....
Thanks....