Modules and Libraries

Modules and Libraries#

  • From the math module, import a function for calculating the natural exponential function \(e^x\). Use this function in a calculation.

  • Find help on the sqrt() function of the math module.

  • Create a small module with a two functions, import the module in a Jupyter notebook and use the functions.

  • Write a function which returns the refractive index of water and ice for wavelengths between 0.2 μm and 1.2 μm. Conditions as they are typically on earths surface (e.g. right now) should be used as default.