Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function that takes as input the atomic coordinates of 3 atoms and calculates the corresponding angle between them. Use it to calculate all

Write a function that takes as input the atomic coordinates of 3 atoms and calculates the corresponding angle between them.

Use it to calculate all 3 H-N-H angles (in degrees) for a molecule of ammonia - coordinates are pre-loaded below.

Print the average angle

import numpy as np

ammonia_coord = np.array([[ -0.002 , -0.001 , -0.070], # nitrogen

[ -0.940 , 0.000 , 0.319], # hydrogen 1

[ 0.471 , -0.812 , 0.321], # hydrogen 2

[ 0.469 , 0.819 , 0.322]]) # hydrogen 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Separation process principles

Authors: J. D. Seader

2nd Edition

471464805, 978-0471464808

More Books

Students also viewed these Chemical Engineering questions