Skip to content

Commit dda0efa

Browse files
committed
Fixing math formatting for github
1 parent 51c474f commit dda0efa

14 files changed

Lines changed: 2026 additions & 932 deletions

notebooks/00_getting_started.ipynb

Lines changed: 80 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
},
132132
{
133133
"cell_type": "code",
134-
"execution_count": null,
134+
"execution_count": 1,
135135
"id": "f1548006",
136136
"metadata": {
137137
"execution": {
@@ -141,7 +141,15 @@
141141
"shell.execute_reply": "2026-02-10T23:04:29.351597Z"
142142
}
143143
},
144-
"outputs": [],
144+
"outputs": [
145+
{
146+
"name": "stdout",
147+
"output_type": "stream",
148+
"text": [
149+
"✓ .NET runtime loaded successfully\n"
150+
]
151+
}
152+
],
145153
"source": [
146154
"import pythonnet\n",
147155
"\n",
@@ -168,7 +176,7 @@
168176
},
169177
{
170178
"cell_type": "code",
171-
"execution_count": null,
179+
"execution_count": 2,
172180
"id": "65dc539a",
173181
"metadata": {
174182
"execution": {
@@ -178,7 +186,15 @@
178186
"shell.execute_reply": "2026-02-10T23:04:29.884975Z"
179187
}
180188
},
181-
"outputs": [],
189+
"outputs": [
190+
{
191+
"name": "stdout",
192+
"output_type": "stream",
193+
"text": [
194+
"✓ Loaded Numerics from: C:\\GIT\\Numerics\\Numerics\\bin\\Debug\\net8.0\\Numerics.dll\n"
195+
]
196+
}
197+
],
182198
"source": [
183199
"import clr \n",
184200
"from pathlib import Path \n",
@@ -209,7 +225,7 @@
209225
},
210226
{
211227
"cell_type": "code",
212-
"execution_count": null,
228+
"execution_count": 3,
213229
"id": "b3a59cb5",
214230
"metadata": {
215231
"execution": {
@@ -219,7 +235,15 @@
219235
"shell.execute_reply": "2026-02-10T23:04:30.373706Z"
220236
}
221237
},
222-
"outputs": [],
238+
"outputs": [
239+
{
240+
"name": "stdout",
241+
"output_type": "stream",
242+
"text": [
243+
"✓ Numerics namespaces imported successfully\n"
244+
]
245+
}
246+
],
223247
"source": [
224248
"# Import the most commonly used namespaces\n",
225249
"from Numerics.Distributions import Normal\n",
@@ -240,7 +264,7 @@
240264
},
241265
{
242266
"cell_type": "code",
243-
"execution_count": null,
267+
"execution_count": 4,
244268
"id": "f6b4f2fd",
245269
"metadata": {
246270
"execution": {
@@ -250,7 +274,22 @@
250274
"shell.execute_reply": "2026-02-10T23:04:30.386939Z"
251275
}
252276
},
253-
"outputs": [],
277+
"outputs": [
278+
{
279+
"name": "stdout",
280+
"output_type": "stream",
281+
"text": [
282+
"Mean: 100.0\n",
283+
"Standard Deviation: 15.0\n",
284+
"Variance: 225.0\n",
285+
"Skewness: 0.0\n",
286+
"Kurtosis: 3.0\n",
287+
"\n",
288+
"Small Sanity Check\n",
289+
"0.5 ~= 0.5 ✓\n"
290+
]
291+
}
292+
],
254293
"source": [
255294
"# Create a Normal Distribution with mean=100, sd=15\n",
256295
"dist = Normal(100,15)\n",
@@ -277,7 +316,7 @@
277316
},
278317
{
279318
"cell_type": "code",
280-
"execution_count": null,
319+
"execution_count": 5,
281320
"id": "d51dfbec",
282321
"metadata": {
283322
"execution": {
@@ -287,7 +326,17 @@
287326
"shell.execute_reply": "2026-02-10T23:04:30.395271Z"
288327
}
289328
},
290-
"outputs": [],
329+
"outputs": [
330+
{
331+
"name": "stdout",
332+
"output_type": "stream",
333+
"text": [
334+
"Python list: [10.5, 20.3, 15.7, 18.9, 22.1]\n",
335+
".NET array length: 5\n",
336+
"Converted back: [10.5, 20.3, 15.7, 18.9, 22.1]\n"
337+
]
338+
}
339+
],
291340
"source": [
292341
"# Python list to .NET Array[Double]\n",
293342
"python_data = [10.5, 20.3, 15.7, 18.9, 22.1]\n",
@@ -315,7 +364,7 @@
315364
},
316365
{
317366
"cell_type": "code",
318-
"execution_count": null,
367+
"execution_count": 6,
319368
"id": "3c61d5ad",
320369
"metadata": {
321370
"execution": {
@@ -325,7 +374,15 @@
325374
"shell.execute_reply": "2026-02-10T23:04:30.735936Z"
326375
}
327376
},
328-
"outputs": [],
377+
"outputs": [
378+
{
379+
"name": "stdout",
380+
"output_type": "stream",
381+
"text": [
382+
"✓ Log-likelihood function defined\n"
383+
]
384+
}
385+
],
329386
"source": [
330387
"# Example data for log-likelihood\n",
331388
"data = Array[Double]([12.0, 15.5, 14.2, 16.8, 13.9])\n",
@@ -351,7 +408,7 @@
351408
},
352409
{
353410
"cell_type": "code",
354-
"execution_count": null,
411+
"execution_count": 7,
355412
"id": "b2c575cc",
356413
"metadata": {
357414
"execution": {
@@ -361,7 +418,16 @@
361418
"shell.execute_reply": "2026-02-10T23:04:30.752184Z"
362419
}
363420
},
364-
"outputs": [],
421+
"outputs": [
422+
{
423+
"name": "stdout",
424+
"output_type": "stream",
425+
"text": [
426+
"✓ Loaded Test_Numerics from: C:\\GIT\\Numerics\\Test_Numerics\\bin\\Debug\\net8.0\\Test_Numerics.dll\n",
427+
"✓ f(x) = x^3 defined\n"
428+
]
429+
}
430+
],
365431
"source": [
366432
"# MODIFY this path to point to your Test_Numerics.dll\n",
367433
"test_dll_path = Path(r\"C:\\GIT\\Numerics\\Test_Numerics\\bin\\Debug\\net8.0\\Test_Numerics.dll\")\n",

notebooks/01_distributions.ipynb

Lines changed: 1513 additions & 75 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)