diff options
author | hardythe1 | 2015-01-28 14:31:21 +0530 |
---|---|---|
committer | hardythe1 | 2015-01-28 14:31:21 +0530 |
commit | 53f72e6790ff23b43c8f6a0b69d6386940671429 (patch) | |
tree | 7745af6dbf2f5b2972b23f9f5a7a19c695a27321 /Elements_of_Physical_Chemistry/Chapter19.ipynb | |
parent | 7b78be04fe05bf240417e22f74b3fc22e7a77d19 (diff) | |
download | Python-Textbook-Companions-53f72e6790ff23b43c8f6a0b69d6386940671429.tar.gz Python-Textbook-Companions-53f72e6790ff23b43c8f6a0b69d6386940671429.tar.bz2 Python-Textbook-Companions-53f72e6790ff23b43c8f6a0b69d6386940671429.zip |
added books
Diffstat (limited to 'Elements_of_Physical_Chemistry/Chapter19.ipynb')
-rwxr-xr-x | Elements_of_Physical_Chemistry/Chapter19.ipynb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Elements_of_Physical_Chemistry/Chapter19.ipynb b/Elements_of_Physical_Chemistry/Chapter19.ipynb new file mode 100755 index 00000000..89f694e9 --- /dev/null +++ b/Elements_of_Physical_Chemistry/Chapter19.ipynb @@ -0,0 +1,64 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 19 - Magnetic resonance"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example I2 - Pg 467"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the spin-spin coupling constants\n",
+ "#Initialization of variables\n",
+ "import math\n",
+ "A=5.1 #Hz\n",
+ "B=-1.4 #Hz\n",
+ "C=3.2 #Hz\n",
+ "an1=120*math.pi/180. #radians\n",
+ "an2=180*math.pi/180. #radians\n",
+ "#calculations\n",
+ "j1=A+B*math.cos(an1) + C*math.cos(2*an1)\n",
+ "j2=A+B*math.cos(an2) + C*math.cos(2*an2)\n",
+ "#results\n",
+ "print '%s %d %s' %(\"Spin-spin coupling constant =\",j1,\"Hz\")\n",
+ "print '%s %.1f %s' %(\"\\n Spin-spin coupling constant =\",j2,\"Hz\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Spin-spin coupling constant = 4 Hz\n",
+ "\n",
+ " Spin-spin coupling constant = 9.7 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |