|
-
Nov 21st, 2003, 02:37 AM
#1
Thread Starter
New Member
program to get an area of a sphere
Hi...
i am looking for some help.
I would need someone to help me to solve an equation.
I have to solve an equation that get different area shapes of a sphere
and lists them as the solution. depending which angle u put in at the beginning.
maybe u can help me to program that!?
it is to hard for me.. cause I haven't done anything in VB before.
here is the equation for the solution
solution here
is that possible?
-
Nov 26th, 2003, 06:52 AM
#2
Hyperactive Member
Hey
I am a bit confused with the equantions :
Can i write that the area of a sphere with radius r and for an angle a is :
2*pi*r*r* ((-cos(a)) -(-cos(0))
or
2*pi*r*r* (1 - cos(a))
Is this mathematically correct. If yes we can solve your problem easily.If not can you write the equantion without the integral sign.(i think the equation is correct, i derived it from eq-2 of the first page by replacing pi with a)
If i am correct then :
you need 2 input txtboxes txtradius and txtangle and output txtbox, lets say txtarea
txtarea.Text = ((2*(Math.Pi)*(cInt(txtradius.Text))*(cInt(txtradius.Text)))*(1 - Math.cos(cInt(txtangle.Text)))).ToString
Best of luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|