{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# NumPy\n", "\n", "```{admonition} Interactive page\n", ":class: warning, dropdown\n", "This is an interactive book page. Press launch button at the top right side.\n", "```\n", "\n", "As a nanobiologist, you will regularly work with scientific data or build computational simulations and models. \n", "A lot of the data will come in the form of arrays (think of vectors as 1D and matrices as 2D arrays), on which you will want to perform mathematical operations.\n", "In fact, the number of **problems in modern biological science** that uses array representations is huge: from DNA datasets to neuronal networks to biomolecular networks, data and models are conveniently and powerfully represented as arrays and linear transformations (i.e., multiplying by matrices). Python's NumPy library was built precisely to aid in this kind of programming tasks.\n", "\n", "For a deeper dive into the significance of NumPy in the world of scientific programming and for a *great visual summary* on some of the fundamental NumPy array concepts, see [this publication](https://doi.org/10.1038/s41586-020-2649-2). You can also visit [NumPy's website](https://numpy.org/doc/stable/user/whatisnumpy.html) if you're curious to learn more.\n", "\n", "In the next sections, we will familiarize ourselves with NumPy and some of its functions.\n", "\n", "```{figure} images/map-10-numpy.svg\n", "---\n", "height: 400px\n", "name:\n", "---\n", "```" ] } ], "metadata": { "jupytext": { "formats": "ipynb,md" }, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.4" } }, "nbformat": 4, "nbformat_minor": 4 }