{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "1b6f6b11-0fbb-453f-a1d0-2913af2550cf", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "eadd3346-207e-40f1-b8fb-e08fc44190af", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "23fa5918-f383-4f09-8f5a-ed0e1d5e4d85", "metadata": {}, "outputs": [], "source": [ "# Define the functions\n", "def f1(x):\n", " return np.sin(3*x) / (x * (np.cos(x) + 2))\n", "\n", "def f2(x):\n", " return np.cos(x) / x\n", "\n", "def f3(x):\n", " return np.exp(-x)\n" ] }, { "cell_type": "code", "execution_count": 4, "id": "4348460a-eb92-494b-9020-5c6fd4499b31", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "