blob: 6d1652dbda554fe72e227e7dad9df791af38cb99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear;
clc;
printf("\t\t\tProblem Number 2.3\n\n\n");
// Chapter 2: Work, Energy, and Heat
// Problem 2.3 (page no. 62)
// Solution
//Given
k=20*1000; // Unit:N/m //k=20kN //k=spring constant
l=0.075; //Unit:meter //l=75 mm //l= length of compression of string
work=(1/2)*k*l^2; //force-displacement relation //Unit:N*m
printf("Workdone is %f Jule",work);
|