Write a program to find radius of gyration | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Write a program to find radius of gyration

27th Feb 2022, 6:16 AM
SAKETH GUPTHA S B CSE21B
8 Answers
0
According to gyration formula, we have read value of m and r till n
28th Feb 2022, 1:19 PM
B.VIDYADHAR VIJJU
B.VIDYADHAR VIJJU - avatar
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
28th Feb 2022, 1:17 PM
B.VIDYADHAR VIJJU
B.VIDYADHAR VIJJU - avatar
0
I didn't the line "for I in range(N): Thank you very much for the answer
28th Feb 2022, 1:18 PM
SAKETH GUPTHA S B CSE21B
0
Can you please also write a program for resolving a force /vector into 2 perpendicular forces
28th Feb 2022, 1:19 PM
SAKETH GUPTHA S B CSE21B
0
Ok
28th Feb 2022, 1:20 PM
SAKETH GUPTHA S B CSE21B
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)
28th Feb 2022, 1:24 PM
SAKETH GUPTHA S B CSE21B
0
Input :F and angle Output: Fx and Fy
28th Feb 2022, 1:25 PM
SAKETH GUPTHA S B CSE21B
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)
28th Feb 2022, 1:29 PM
B.VIDYADHAR VIJJU
B.VIDYADHAR VIJJU - avatar