+ 1
Write a program to find radius of gyration
8 Answers
0
According to gyration formula, we have read value of m and r till n
0
In python:
import math
N=int(input())
M=1
R=1
F=0
for i in range(N):
F=F+int(input())+math.pow(int(input()),2)
print (F)
I hope this helps you..
Reach out to me if you require any further help
Check the below Instagram page
For more code snippets
Id: anonymous_me_0000
0
I didn't the line "for I in range(N):
Thank you very much for the answer
0
Can you please also write a program for resolving a force /vector into 2 perpendicular forces
0
Ok
0
Resolving a Force F into Fx (x component of F) and Fy (y component of F)
Fx=F*cos(angle)
Fy=F*sin(angle)
Here F is making some angle with x axis.
Can you write a program which also has vector diagram using numpy or other modules(if possible)
0
Input :F and angle
Output: Fx and Fy
0
SAKETH GUPTHA S B CSE21B
import math
Force=int(input ())
Angle=float(input())
Fx=Force*math.sin(Angle)
Fy=Force*Math.cos(Angle)
print (Fx,Fy)