Results 1 to 2 of 2

Thread: program to get an area of a sphere

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    1

    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?

  2. #2
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330
    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
    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width