can you please help me with this question from the start
Extracted text: A cantilever beam is under a concentrate load P (N), the beam has a length of L (m). P L y Write a function to find the internal shear force V(x) (N) and moment M(x) (N*m) at any given position along the beam x = a.
10 and x<0): return="" 'not="" in="" the="" rod'="" else:="" return="" -p="" #="" as="" shear="" force="" inside="" rod="" is="" -p="" def="" m(x):="" p="10" #="" assuming="" load="" to="" rod="" to="" be="" 10n="" l="10" #="" assuming="" length="" of="" rod="" on="" positive="" face="" to="" be="" 10m="" if(x="">10 and x<0): return="" 'not="" in="" the="" rod'="" else:="" return="" p*="" (x-l)="" #="" as="" bending="" moment="" inside="" rod="" on="" positive="" face="" is="" p(x-l)="" print="" (v(2))="" print(m(2))="" return="" va,="" ma="" #="" #="" make="" sure="" in="" your="" solution,="" you="" use="" the="" same="" name="" "va"="" and="" "ma"="" for="" the="" outputs.="" here,="" there="" are="" file="" "/tmp/ipykernel_55/3866599776="" .py",="" line="" 41="" return="" va,="" ma="" #="" #="" make="" sure="" in="" your="" solution,="" you="" use="" the="" same="" name="" "va"="" and="" "ma"="" for="" the="" outputs.="" here,="" there="" ar="" e="" two="" outputs="" indentationerror:="" unexpected="" indent="" "/="">
Extracted text: In [65]: # Complete the function given the variables P, L, a and return the shear force as "Va" and internal moment as "Ma". ## Don't change the predefined content, only fill your code in the region "YOUR CODE" def BeamInternal(P, L, a): ' 'Compute internal shear force V(x) and moment M(x) at any given position x=a. Parameters : Load L : Beam length : Arbitrary position along the beam x=a a Step 1: Cut the beam at any position x=a, and determine the shear force and moment formula Step 2: Write down the internal force at given position V(x=a) and M(x=a) # def V(x): P = 10 # Assuming Load to rod to be 10N L = 10 # Assuming length of rod to be 10m if(x>10 and x<0): return="" 'not="" in="" the="" rod'="" else:="" return="" -p="" #="" as="" shear="" force="" inside="" rod="" is="" -p="" def="" m(x):="" p="10" #="" assuming="" load="" to="" rod="" to="" be="" 10n="" l="10" #="" assuming="" length="" of="" rod="" on="" positive="" face="" to="" be="" 10m="" if(x="">10 and x<0): return="" 'not="" in="" the="" rod'="" else:="" return="" p*="" (x-l)="" #="" as="" bending="" moment="" inside="" rod="" on="" positive="" face="" is="" p(x-l)="" print="" (v(2))="" print(m(2))="" return="" va,="" ma="" #="" #="" make="" sure="" in="" your="" solution,="" you="" use="" the="" same="" name="" "va"="" and="" "ma"="" for="" the="" outputs.="" here,="" there="" are="" file="" "/tmp/ipykernel_55/3866599776="" .py",="" line="" 41="" return="" va,="" ma="" #="" #="" make="" sure="" in="" your="" solution,="" you="" use="" the="" same="" name="" "va"="" and="" "ma"="" for="" the="" outputs.="" here,="" there="" ar="" e="" two="" outputs="" indentationerror:="" unexpected="">0):>
0):>0):>0):>