Categories:Viewed: 3 - Published at: a few seconds ago

Write a function to return the volume of a cuboid

def cal_cuboid_volume(length:float, breadth:float, height:float)->float:
    return length*breadth*height

Write a function to return the volume of a cube

def cal_cube_volume(side:float)->float:
    return side**3

Write a function to return the speed of moving object based of distance travelled in given time

def cal_speed(distance:float,time:float)->float:
    return distance/time

Write a function to return the distance covered by a moving object based on speend and given time

def cal_distance(time:float,speed:float)->float:
    return time*speed

Write a function to return the time taken by a given of moving object based of distance travelled in given time

def cal_time(distance:float,speed:float)->float:
    return distance/speed

Write a function to return the torque when a force f is applied at angle thea and distance for axis of rotation to place force applied is r

def cal_torque(force:float,theta:float,r:float)->float:
    import math
    return force*r*math.sin(theta)

Write a function to return the angualr veolcity based on augualr distance travelled in radian unit and time taken

def cal_angular_velocity(angular_dist:float,time:float)->float:
    return angular_dist/time

Write a function to calculate the focal length of a lense buy the distance of object and distance of image from lense

def cal_focal_length_of_lense(u:float,v:float)->float:
    return (u*v)/(u+v)

Write a function to calculate the gravitational force between two objects of mass m1 and m2 and distance of r between them

def cal_gforce(mass1:float,mass2:float, distance:float)->float:
    g = 6.674*(10)**(-11)
    return (g*mass1*mass2)/(distance**2)

Write a function to calculate the current in the curcit where the resistance is R and voltage is V

def cal_current(resistance:float, voltage:float)->float:
    return voltage/resistance

Write a function to calculate the total capacitance of capacitors in parallel in a given list

def cal_total_cap_in_parallel(cap_list:list)->float:
    return sum(cap_list)

Write a function to calculate the total resistance of resistances in parallel in a given list

def cal_total_res_in_parallel(res_list:list)->float:
    return sum([1/r for r in res_list])

Write a function to calculate the total resistance of resistances in series in a given list

def cal_total_res_in_series(res_list:list)->float:
    return sum(res_list)

Write a function to calculate the moment of inertia of a ring of mass M and radius R

def cal_mi_ring(mass:float,radius:float)->float:
    return mass*(radius**2)

Write a function to calculate the moment of inertia of a sphere of mass M and radius R

def cal_mi_sphere(mass:float,radius:float)->float:
    return (7/5)*mass*(radius**2)