blob: d71d4064303bfd619684c7c5f4c2a8da5b0ff174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Chapter 12: Polymers and Polymerization
//Problem: 2
clc;
//Declaration of Variables
n = 10000 // degree of polymerisation
// Solution
m = 8 * 12 + 8 * 1.008 // g / mer
M = n * m
mprintf("Molecular weight of polystyrene chain = %.1f g /mol", M)
|