description centripetal force is the force acting on an object in curvilinear motion directed towards the axis of rotation or centre of curvature the unit of centripetal force is newton the centripetal force is always directed perpendicular to the direction of the objects displacement using newtons second law of motion it is found that the centripetal force of an object moving in a circular path always acts towards the centre of the circle the centripetal force formula is given as the product of mass in kg and tangential velocity in meters per second squared divided by the radius in meters that implies that on doubling the tangential velocity the centripetal force will be quadrupled mathematically it is written as f mvr where f is the centripetal force m is the mass of the object v is the speed or velocity of the object and r is the radius reference https byjus comphysicscentripetalandcentrifugalforce the centripetal force formula is given as mvvr roundcentripetal15 5 30 10 2 1395 0 roundcentripetal10 15 5 2 450 0 roundcentripetal20 50 15 2 3333 33 roundcentripetal12 25 40 25 2 784 0 roundcentripetal50 100 50 2 10000 0 the centripetal force formula is given as m v v r round centripetal 15 5 30 10 2 1395 0 round centripetal 10 15 5 2 450 0 round centripetal 20 50 15 2 3333 33 round centripetal 12 25 40 25 2 784 0 round centripetal 50 100 50 2 10000 0
def centripetal(mass: float, velocity: float, radius: float) -> float:
    
    if mass < 0:
        raise ValueError("The mass of the body cannot be negative")
    if radius <= 0:
        raise ValueError("The radius is always a positive non zero integer")
    return (mass * (velocity) ** 2) / radius


if __name__ == "__main__":
    import doctest

    doctest.testmod(verbose=True)