{ "cells": [ { "cell_type": "markdown", "id": "fcb25f8e", "metadata": {}, "source": [ "# splines_test\n", "\n", "\n", "\n", "\n", "**Author:** Federico Carminati \n", "This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Tuesday, May 19, 2026 at 08:37 PM." ] }, { "cell_type": "markdown", "id": "9a62a310", "metadata": {}, "source": [ " Arguments are defined. " ] }, { "cell_type": "code", "execution_count": 1, "id": "a50643eb", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:29.602277Z", "iopub.status.busy": "2026-05-19T20:37:29.602150Z", "iopub.status.idle": "2026-05-19T20:37:29.940260Z", "shell.execute_reply": "2026-05-19T20:37:29.939805Z" } }, "outputs": [], "source": [ "Int_t np = 23;\n", "Double_t a = -0.5;\n", "Double_t b = 31;" ] }, { "cell_type": "code", "execution_count": 2, "id": "919e4de1", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:29.952295Z", "iopub.status.busy": "2026-05-19T20:37:29.952157Z", "iopub.status.idle": "2026-05-19T20:37:30.170834Z", "shell.execute_reply": "2026-05-19T20:37:30.170246Z" } }, "outputs": [], "source": [ "const Double_t power = 0.75;\n", "const Double_t eps = (b - a) * 1.e-5;" ] }, { "cell_type": "markdown", "id": "d51a2d7a", "metadata": {}, "source": [ "Define the original function" ] }, { "cell_type": "code", "execution_count": 3, "id": "449128e3", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:30.177674Z", "iopub.status.busy": "2026-05-19T20:37:30.177536Z", "iopub.status.idle": "2026-05-19T20:37:30.388745Z", "shell.execute_reply": "2026-05-19T20:37:30.388118Z" } }, "outputs": [], "source": [ "TF1 *f = new TF1(\"f\", \"sin(x)*sin(x/10)\", a - 0.05 * (b - a), b + 0.05 * (b - a));" ] }, { "cell_type": "markdown", "id": "b0b06508", "metadata": {}, "source": [ "Draw function" ] }, { "cell_type": "code", "execution_count": 4, "id": "3a77bd41", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:30.390446Z", "iopub.status.busy": "2026-05-19T20:37:30.390328Z", "iopub.status.idle": "2026-05-19T20:37:41.861854Z", "shell.execute_reply": "2026-05-19T20:37:41.861374Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "