1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-23 00:14:21 +00:00
triennale-appunti-steffo/docs/route-calcoloNumerico.chunk.726a6.js.map

1 line
No EOL
20 KiB
Text
Generated

{"version":3,"sources":["webpack:///./components/latex.css","webpack:///./components/panel.css","webpack:///./components/example.css","webpack:///./routes/calcoloNumerico.js","webpack:///./components/todo.js","webpack:///./components/timer.js","webpack:///./components/panel.js","webpack:///./components/example.js","webpack:///./components/timer.less","webpack:///./components/latex.js","webpack:///./components/split.js","webpack:///./components/todo.css","webpack:///./components/split.css"],"names":["module","exports","r","String","raw","CalcoloNumerico","render","title","href","Component","Todo","class","style","todo","this","props","children","Timer","state","Date","now","timer","componentDidMount","setInterval","setState","componentWillUnmount","clearInterval","dateTo","className","parts","milliseconds","seconds","minutes","hours","days","to","timeLeft","Math","floor","expired","unknown","count","text","remaining","Panel","getStyle","panel","undefined","id","Example","example","Latex","src","alt","latex","Split","Array","isArray","map","element","splitchild","split","splitparent"],"mappings":"4EACAA,EAAOC,QAAU,CAAC,MAAQ,iB,mBCA1BD,EAAOC,QAAU,CAAC,MAAQ,iB,mBCA1BD,EAAOC,QAAU,CAAC,QAAU,mB,+/BCOtBC,EAAIC,OAAOC,IAEIC,E,gLACjBC,OAAA,WACI,OACI,aACI,gCACA,EAAC,IAAD,CAAOC,MAAO,aACV,EAAC,IAAD,CAAOA,MAAO,UACV,oCAC0B,6BAE1B,YACI,YAAI,OAAGC,KAAM,gCAAT,gCACJ,YAAI,OAAGA,KAAM,gCAAT,WACJ,YAAI,OAAGA,KAAM,gCAAT,gBACJ,YAAI,OAAGA,KAAM,gCAAT,YAER,WACI,kDAAuC,OAAGA,KAAM,2DAAT,SAAvC,OAGR,EAAC,IAAD,CAAOD,MAAO,gBACV,YACI,YAAI,OAAGC,KAAM,gCAAT,0BACJ,YAAI,OAAGA,KAAM,gCAAT,8BACJ,YAAI,OAAGA,KAAM,gCAAT,gCACJ,YAAI,OAAGA,KAAM,gCAAT,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2BwC,IAArBjC,KAAKC,MAAMR,QACPA,EAAS,YAAKO,KAAKC,MAAMR,QAKzBS,EADDwC,MAAMC,QAAQ3C,KAAKC,MAAMC,UACbF,KAAKC,MAAMC,SAAS0C,KAAI,SAAAC,GAC/B,OAAQ,SAAKhD,MAAOC,IAAMgD,YAAaD,MAIhC,SAAKhD,MAAOC,IAAMgD,YAAa9C,KAAKC,MAAMC,UAGxD,SAAKL,MAAOC,IAAMiD,OACVtD,EACD,SAAKI,MAAOC,IAAMkD,aAAc9C,K,aAnBbP,a,yCCFnCT,EAAOC,QAAU,CAAC,KAAO,gB,iBCAzBD,EAAOC,QAAU,CAAC,MAAQ,eAAe,YAAc,qBAAqB,WAAa","file":"route-calcoloNumerico.chunk.726a6.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"latex\":\"latex__3Esv7\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"panel\":\"panel__1ubJw\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"example\":\"example__P0_NL\"};","import {Component} from 'preact'\nimport Split from \"../components/split\";\nimport Latex from \"../components/latex\";\nimport Panel from \"../components/panel\";\nimport Example from \"../components/example\";\nimport Todo from \"../components/todo\";\nimport Timer from \"../components/timer\";\n\nconst r = String.raw;\n\nexport default class CalcoloNumerico extends Component {\n render() {\n return (\n <div>\n <h1>Calcolo Numerico</h1>\n <Split title={\"Materiale\"}>\n <Panel title={\"Slides\"}>\n <p>\n Ultimo aggiornamento: <time>2020-03-11</time>\n </p>\n <ul>\n <li><a href={\"https://t.me/unimorefiles/13\"}>Richiami di Algebra Lineare</a></li>\n <li><a href={\"https://t.me/unimorefiles/14\"}>Slides</a></li>\n <li><a href={\"https://t.me/unimorefiles/15\"}>Laboratorio</a></li>\n <li><a href={\"https://t.me/unimorefiles/16\"}>Matlab</a></li>\n </ul>\n <p>\n <i>Per slides più aggiornate, visitate <a href={\"https://dolly.fim.unimore.it/2019/course/view.php?id=25\"}>Dolly</a>!</i>\n </p>\n </Panel>\n <Panel title={\"Videolezioni\"}>\n <ol>\n <li><a href={\"https://t.me/unimorefiles/34\"}>Introduzione al corso</a></li>\n <li><a href={\"https://t.me/unimorefiles/35\"}>Introduzione alla materia</a></li>\n <li><a href={\"https://t.me/unimorefiles/36\"}>Rappresentazione dei numeri</a></li>\n <li><a href={\"https://t.me/unimorefiles/37\"}>Rappresentazione fixed point degli interi</a></li>\n <li><a href={\"https://t.me/unimorefiles/38\"}>Rappresentazione floating point dei reali</a></li>\n <li><a href={\"https://t.me/unimorefiles/39\"}>Operazioni di macchina</a></li>\n <li>Analisi degli errori: condizionamento e stabilità</li>\n <li>Richiami di Algebra lineare</li>\n </ol>\n </Panel>\n <Panel title={\"Team-based Learning\"}>\n <blockquote>\n <p>\n Le lezioni in modalità TBL, previste per il corso di Laurea in Informatica, saranno erogate solo quando sarà possibile tornare alla modalità didattica in presenza, per la natura stessa di questa metodologia che non prevede uno svolgimento a distanza.\n </p>\n <p>\n Per il momento, vista l'incertezza della situazione in continua evoluzione, è inutile dare ulteriori indicazioni sulle date o altri aspetti pratici legati al progetto.\n </p>\n <p>\n Appena sarà possibile, gli interessati verranno informati tramite email.\n </p>\n </blockquote>\n <p>\n Partecipare al Team-based Learning può portare all'ottenimento di fino a 3 punti bonus all'esame e esenzione dalla domanda di Matlab.\n </p>\n </Panel>\n </Split>\n <Split title={\"Contatti\"}>\n <Panel title={\"Email della prof.ssa\"}>\n <p>\n <a href={\"mailto:silvia.bonettini@unimore.it\"}>silvia.bonettini@unimore.it</a>\n </p>\n </Panel>\n <Panel title={\"Ricevimento\"}>\n <p>\n Su appuntamento.\n </p>\n </Panel>\n </Split>\n <Split title={\"Esame\"}>\n <Panel title={\"Orale\"}>\n <p>\n E' composto da:\n </p>\n <ul>\n <li>2 domande sugli argomenti teorici</li>\n <li>1 domanda di implementazione algoritmo in MATLAB <small>(facoltativa per i punteggi migliori del TBL)</small></li>\n </ul>\n <p>\n Prossimo appello:\n <Timer/>\n </p>\n </Panel>\n </Split>\n <Split title={\"Algoritmi\"}>\n <Panel title={\"Algoritmi numerici\"}>\n <p>\n Algoritmi che hanno:\n </p>\n <ul>\n <li>numeri reali in input e output</li>\n <li>successioni delle quattro operazioni aritmetiche fondamentali come passi</li>\n </ul>\n </Panel>\n </Split>\n <Split title={\"Errore di rappresentazione\"}>\n <Panel title={\"Errore di rappresentazione\"}>\n <p>\n Con i numeri floating point può capitare che un certo numero <Latex>{r`\\alpha`}</Latex> non sia rappresentato correttamente.\n </p>\n <p>\n In tal caso, il numero si indica con <Latex>{r`\\alpha^*`}</Latex>.\n </p>\n </Panel>\n <Panel title={\"Errore assoluto\"}>\n <p>\n È la differenza tra il numero desiderato e il numero rappresentato:\n </p>\n <p>\n <Latex>{r`E_a = \\left | \\alpha - \\alpha^* \\right |`}</Latex>\n </p>\n <Example>\n Vale sempre 0, tranne in caso di underflow o overflow.\n </Example>\n </Panel>\n <Panel title={\"Errore relativo\"}>\n <p>\n Indica quanto il numero rappresentato differisce dal numero desiderato:\n </p>\n <p>\n <Latex>{r`\\forall \\alpha \\neq 0, E_r = \\frac{E_a}{\\left | \\alpha \\right |}`}</Latex>\n </p>\n </Panel>\n </Split>\n <Split title={\"Floating point\"}>\n <Panel title={\"Precisione di macchina\"}>\n <p>\n L'errore relativo di un numero reale rappresentato in virgola mobile è minore o uguale alla <i>precisione di macchina</i>:\n </p>\n <p>\n <Latex>{r`E_r \\leq k \\cdot \\beta^{1-t}`}</Latex>\n </p>\n <ul>\n <li>\n <Latex>\\beta</Latex> è uguale alla base utilizzata (solitamente 2).\n </li>\n <li>\n <Latex>t</Latex> è uguale al numero di cifre della mantissa.\n </li>\n <li>\n <Latex>k</Latex> è uguale a <Latex>1</Latex> se il numero viene rappresentato per troncamento oppure a <Latex>{r`\\frac{1}{2}`}</Latex> se viene rappresentato per arrotondamento.\n </li>\n </ul>\n </Panel>\n </Split>\n <Split title={\"Operazioni di macchina\"}>\n <Panel title={\"Un nuovo insieme\"}>\n <p>\n L'insieme <Latex>F</Latex> è il sottoinsieme dei numeri reali rappresentabili in floating point dalla macchina che stiamo usando.\n </p>\n <p>\n Operazioni tra elementi di <Latex>F</Latex> producono risultati in <Latex>{r`\\mathbb{R}`}</Latex>, che però decaderanno nuovamente a elementi di <Latex>F</Latex>, perdendo informazioni.\n </p>\n <p>\n Il teorema della precisione di macchina si applica quindi anche ai risultati delle operazioni.\n </p>\n </Panel>\n <Panel title={\"Caratteristiche delle operazioni di macchina\"}>\n <ul>\n <li>Hanno più di un elemento neutro.</li>\n <li>Un numero ha più opposti.</li>\n <li>Non sono associative.</li>\n <li>Non sono distributive.</li>\n <li>Non vale la legge di annullamento del prodotto.</li>\n </ul>\n </Panel>\n </Split>\n </div>\n )\n }\n}\n","import style from \"./todo.css\";\r\nimport { Component } from 'preact';\r\n\r\nexport default class Todo extends Component {\r\n\trender() {\r\n\t\treturn <span class={style.todo}>{this.props.children}</span>;\r\n\t}\r\n}\r\n","import {Component} from 'preact'\r\nimport style from \"./timer.less\"\r\n\r\n\r\nexport default class Timer extends Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n \"now\": Date.now()\r\n };\r\n this.timer = null;\r\n }\r\n\r\n componentDidMount() {\r\n this.timer = setInterval(() => {\r\n this.setState({\"now\": Date.now()})\r\n }, 1000)\r\n }\r\n\r\n componentWillUnmount() {\r\n if(this.timer !== null) {\r\n clearInterval(this.timer)\r\n }\r\n }\r\n\r\n render() {\r\n let dateTo = \"Unknown date\";\r\n let className = style.timer;\r\n\r\n let parts = {\r\n milliseconds: \"?\",\r\n seconds: \"?\",\r\n minutes: \"?\",\r\n hours: \"?\",\r\n days: \"?\",\r\n };\r\n\r\n if(this.props.to) {\r\n dateTo = new Date(this.props.to);\r\n let timeLeft = dateTo - this.state.now;\r\n\r\n if(timeLeft > 0) {\r\n parts = {\r\n milliseconds: timeLeft % 1000,\r\n seconds: Math.floor(timeLeft / 1000) % 60,\r\n minutes: Math.floor(timeLeft / 60000) % 60,\r\n hours: Math.floor(timeLeft / 3600000) % 24,\r\n days: Math.floor(timeLeft / 86400000),\r\n };\r\n }\r\n\r\n else {\r\n parts = {\r\n milliseconds: 0,\r\n seconds: 0,\r\n minutes: 0,\r\n hours: 0,\r\n days: 0,\r\n };\r\n\r\n className += \" \" + style.expired;\r\n }\r\n }\r\n else {\r\n className += \" \" + style.unknown;\r\n }\r\n\r\n return (\r\n <div class={className} title={dateTo}>\r\n <div class={style.days + \" \" + style.count}>\r\n {parts.days}\r\n </div>\r\n <div className={style.days + \" \" + style.text}>\r\n giorni\r\n </div>\r\n <div class={style.hours + \" \" + style.count}>\r\n {parts.hours}\r\n </div>\r\n <div className={style.hours + \" \" + style.text}>\r\n ore\r\n </div>\r\n <div class={style.minutes + \" \" + style.count}>\r\n {parts.minutes}\r\n </div>\r\n <div className={style.minutes + \" \" + style.text}>\r\n minuti\r\n </div>\r\n <div class={style.seconds + \" \" + style.count}>\r\n {parts.seconds}\r\n </div>\r\n <div class={style.seconds + \" \" + style.text}>\r\n secondi\r\n </div>\r\n <div class={style.remaining}>\r\n rimasti\r\n </div>\r\n </div>\r\n )\r\n }\r\n}\r\n","import style from \"./panel.css\";\nimport { Component } from 'preact';\n\nexport default class Panel extends Component {\n\tgetStyle() {\n\t\treturn style.panel;\n\t};\n\n\trender() {\n\t\tlet title = null;\n\t\tif(this.props.title !== undefined) {\n\t\t\ttitle = (<h3>{this.props.title}</h3>);\n\t\t}\n\n\t\treturn (\n\t\t\t<div class={this.getStyle()} id={this.props.id}>\n\t\t\t\t{title}\n\t\t\t\t{this.props.children}\n\t\t\t</div>\n\t\t);\n\t}\n}\n","import style from \"./example.css\";\nimport {Component} from \"preact\";\n\nexport default class Example extends Component {\n render() {\n return (\n <blockquote class={style.example}>\n {this.props.children}\n </blockquote>\n )\n }\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"timer\":\"timer__23gHK\",\"days\":\"days__3ZzFX\",\"hours\":\"hours__3LtGw\",\"minutes\":\"minutes__1_j61\",\"seconds\":\"seconds__gE-gj\",\"count\":\"count__28Md8\",\"text\":\"text__2kIQZ\",\"remaining\":\"remaining__1HVwa\",\"unknown\":\"unknown__teMQN\",\"expired\":\"expired__3wewI\"};","import style from './latex.css';\nimport { Component } from 'preact';\n\nexport default class Latex extends Component {\n\trender() {\n\t\tlet equation = `{\\\\color{White} ${this.props.children} }`;\n\t\treturn (\n\t\t\t<img src={`https://latex.codecogs.com/svg.latex?${equation}`}\n\t\t\t\t alt={this.props.children}\n\t\t\t title={this.props.children}\n\t\t\t class={style.latex}\n\t\t\t/>);\n\t}\n}","import style from \"./split.css\";\nimport { Component } from 'preact';\n\nexport default class Split extends Component {\n\trender() {\n\t let title = null;\n\t if(this.props.title !== undefined) {\n title = (<h2>{this.props.title}</h2>)\n }\n\n let children;\n if(Array.isArray(this.props.children)) {\n children = this.props.children.map(element => {\n return (<div class={style.splitchild}>{element}</div>);\n });\n }\n else {\n children = <div class={style.splitchild}>{this.props.children}</div>;\n }\n\t\treturn (\n\t <div class={style.split}>\n {title}\n <div class={style.splitparent}>{children}</div>\n </div>\n );\n\t}\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"todo\":\"todo__1pOoN\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"split\":\"split__3qCWp\",\"splitparent\":\"splitparent__2xagg\",\"splitchild\":\"splitchild__3cEoc\"};"],"sourceRoot":""}