├── Kernel ├── SamplePaclet.wl ├── AddOne.wl └── AddTwo.wl ├── Tests ├── AddOne.wlt ├── AddTwo.wlt └── Arithmetic.wlt ├── README.md ├── PacletInfo.wl ├── LICENSE └── Documentation └── English ├── Guides └── SampleGuide.nb ├── ReferencePages └── Symbols │ ├── AddOne.nb │ └── AddTwo.nb └── Tutorials └── Arithmetic.nb /Kernel/SamplePaclet.wl: -------------------------------------------------------------------------------- 1 | < "AddOne-Initialization" 5 | ] 6 | 7 | VerificationTest[ 8 | AddOne @ 1, 9 | 2, 10 | TestID -> "AddOne-1" 11 | ] 12 | 13 | VerificationTest[ 14 | AddOne @ 2, 15 | 3, 16 | TestID -> "AddOne-2" 17 | ] -------------------------------------------------------------------------------- /Tests/AddTwo.wlt: -------------------------------------------------------------------------------- 1 | VerificationTest[ 2 | Needs[ "SamplePublisher`SamplePaclet`" ], 3 | Null, 4 | TestID -> "AddTwo-Initialization" 5 | ] 6 | 7 | VerificationTest[ 8 | AddTwo @ 1, 9 | 3, 10 | TestID -> "AddTwo-1" 11 | ] 12 | 13 | VerificationTest[ 14 | AddTwo @ 2, 15 | 4, 16 | TestID -> "AddTwo-2" 17 | ] -------------------------------------------------------------------------------- /Tests/Arithmetic.wlt: -------------------------------------------------------------------------------- 1 | VerificationTest[ 2 | Needs[ "SamplePublisher`SamplePaclet`" ], 3 | Null, 4 | TestID -> "Arithmetic-Initialization" 5 | ] 6 | 7 | naturalNumber[ n_ ] := Nest[ AddOne, 0, n ]; 8 | plus[ x_, y_ ] := Nest[ AddOne, x, y ]; 9 | times[ x_, y_ ] := Nest[ OperatorApplied[ plus ][ x ], 0, y ]; 10 | 11 | VerificationTest[ 12 | naturalNumber[ 5 ], 13 | 5, 14 | TestID -> "NaturalNumbers" 15 | ] 16 | 17 | VerificationTest[ 18 | plus[ 3, 4 ], 19 | 7, 20 | TestID -> "Addition" 21 | ] 22 | 23 | VerificationTest[ 24 | times[ 3, 4 ], 25 | 12, 26 | TestID -> "Multiplication" 27 | ] -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PacletCICD-Examples-Sample 2 | 3 | This is a sample Paclet used for [PacletCICD](https://github.com/WolframResearch/PacletCICD) documentation examples. This Paclet is meant to demonstrate basic CI/CD workflows for typical Paclet layouts. 4 | 5 | A local copy can be retrieved in Wolfram Language using the following steps. 6 | 7 | Install the [PacletCICD](https://github.com/WolframResearch/PacletCICD) Paclet: 8 | ```Mathematica 9 | PacletInstall[ResourceObject["Wolfram/PacletCICD"]] 10 | ``` 11 | 12 | Load the necessary context: 13 | ```Mathematica 14 | Needs["Wolfram`PacletCICD`"] 15 | ``` 16 | 17 | Get a directory containing this repository's source code: 18 | ```Mathematica 19 | ExampleDirectory["Sample"] 20 | ``` -------------------------------------------------------------------------------- /PacletInfo.wl: -------------------------------------------------------------------------------- 1 | PacletObject[ <| 2 | "Name" -> "SamplePublisher/SamplePaclet", 3 | "Description" -> "A complete sample Paclet", 4 | "Creator" -> "Sample Author", 5 | "Version" -> "1.7.0", 6 | "WolframVersion" -> "13.0+", 7 | "License" -> "MIT", 8 | "PublisherID" -> "SamplePublisher", 9 | "SourceControlURL" -> "https://github.com/WolframResearch/PacletCICD-Examples-Sample", 10 | "Extensions" -> { 11 | { 12 | "Kernel", 13 | "Root" -> "Kernel", 14 | "Context" -> { "SamplePublisher`SamplePaclet`" }, 15 | "Symbols" -> { 16 | "SamplePublisher`SamplePaclet`AddOne", 17 | "SamplePublisher`SamplePaclet`AddTwo" 18 | } 19 | }, 20 | { 21 | "Documentation", 22 | "Root" -> "Documentation", 23 | "Language" -> "English" 24 | }, 25 | { 26 | "Asset", 27 | "Assets" -> { { "License", "./LICENSE" } } 28 | } 29 | } 30 | |> ] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Wolfram Research 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Documentation/English/Guides/SampleGuide.nb: -------------------------------------------------------------------------------- 1 | (* Content-type: application/vnd.wolfram.mathematica *) 2 | 3 | (*** Wolfram Notebook File ***) 4 | (* http://www.wolfram.com/nb *) 5 | 6 | (* Created By: SaveReadableNotebook *) 7 | (* https://resources.wolframcloud.com/FunctionRepository/resources/SaveReadableNotebook *) 8 | 9 | Notebook[ 10 | { 11 | Cell[ 12 | TextData[ 13 | { 14 | "New in: ", 15 | Cell["", "HistoryData", CellTags -> "New"], 16 | " | Modified in: ", 17 | Cell[" ", "HistoryData", CellTags -> "Modified"], 18 | " | Obsolete in: ", 19 | Cell[" ", "HistoryData", CellTags -> "Obsolete"], 20 | " | Excised in: ", 21 | Cell[" ", "HistoryData", CellTags -> "Excised"] 22 | } 23 | ], 24 | "History", 25 | CellID -> 81275805 26 | ], 27 | Cell[ 28 | "Created by: rhennigan on 04-08-2022 11:39:02", 29 | "AuthorDate", 30 | CellID -> 45969991 31 | ], 32 | Cell[ 33 | CellGroupData[ 34 | { 35 | Cell[ 36 | "Categorization", 37 | "CategorizationSection", 38 | CellID -> 780242419 39 | ], 40 | Cell[ 41 | "Guide", 42 | "Categorization", 43 | CellLabel -> "Entity Type", 44 | CellID -> 363220203 45 | ], 46 | Cell[ 47 | "SamplePublisher/SamplePaclet", 48 | "Categorization", 49 | CellLabel -> "Paclet Name", 50 | CellID -> 73239438 51 | ], 52 | Cell[ 53 | "SamplePublisher`SamplePaclet`", 54 | "Categorization", 55 | CellLabel -> "Context", 56 | CellID -> 356463850 57 | ], 58 | Cell[ 59 | "SamplePublisher/SamplePaclet/guide/SampleGuide", 60 | "Categorization", 61 | CellLabel -> "URI", 62 | CellID -> 358425830 63 | ] 64 | }, 65 | Open 66 | ] 67 | ], 68 | Cell[ 69 | CellGroupData[ 70 | { 71 | Cell["Keywords", "KeywordsSection", CellID -> 651643062], 72 | Cell["sample", "Keywords", CellID -> 128733725], 73 | Cell["paclet", "Keywords", CellID -> 427034233], 74 | Cell["CI/CD", "Keywords", CellID -> 334428899] 75 | }, 76 | Open 77 | ] 78 | ], 79 | Cell[ 80 | CellGroupData[ 81 | { 82 | Cell["Sample Guide", "GuideTitle", CellID -> 342685780], 83 | Cell[ 84 | "This is a basic guide page.", 85 | "GuideAbstract", 86 | CellID -> 832147479 87 | ] 88 | }, 89 | Open 90 | ] 91 | ], 92 | Cell[ 93 | CellGroupData[ 94 | { 95 | Cell["", "GuideFunctionsSection", CellID -> 123752921], 96 | Cell[ 97 | TextData[ 98 | { 99 | Cell[ 100 | BoxData[ 101 | ButtonBox[ 102 | "AddOne", 103 | BaseStyle -> "Link", 104 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddOne" 105 | ] 106 | ], 107 | "InlineGuideFunction" 108 | ], 109 | " \[LongDash] add one to something" 110 | } 111 | ], 112 | "GuideText", 113 | CellID -> 187236300 114 | ], 115 | Cell[ 116 | TextData[ 117 | { 118 | Cell[ 119 | BoxData[ 120 | ButtonBox[ 121 | "AddTwo", 122 | BaseStyle -> "Link", 123 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddTwo" 124 | ] 125 | ], 126 | "InlineGuideFunction" 127 | ], 128 | " \[LongDash] add two to something" 129 | } 130 | ], 131 | "GuideText", 132 | CellID -> 16974419 133 | ], 134 | Cell[ 135 | CellGroupData[ 136 | { 137 | Cell["\t", "GuideDelimiter", CellID -> 285454490], 138 | Cell[ 139 | TextData[ 140 | { 141 | Cell[ 142 | BoxData[ 143 | ButtonBox[ 144 | "AddOne", 145 | BaseStyle -> "Link", 146 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddOne" 147 | ] 148 | ], 149 | "InlineFormula" 150 | ], 151 | " \[EmptyVerySmallSquare] ", 152 | Cell[ 153 | BoxData[ 154 | ButtonBox[ 155 | "AddTwo", 156 | BaseStyle -> "Link", 157 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddTwo" 158 | ] 159 | ], 160 | "InlineFormula" 161 | ] 162 | } 163 | ], 164 | "InlineGuideFunctionListing", 165 | CellID -> 254962454 166 | ] 167 | }, 168 | Open 169 | ] 170 | ] 171 | }, 172 | Open 173 | ] 174 | ], 175 | Cell[ 176 | CellGroupData[ 177 | { 178 | Cell[ 179 | "Tech Notes", 180 | "GuideTutorialsSection", 181 | CellID -> 75456993 182 | ], 183 | Cell[ 184 | TextData[ 185 | ButtonBox[ 186 | "Arithmetic", 187 | BaseStyle -> "Link", 188 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/tutorial/Arithmetic" 189 | ] 190 | ], 191 | "GuideTutorial", 192 | CellID -> 232893748 193 | ], 194 | Cell["XXXX", "GuideTutorial", CellID -> 19646819] 195 | }, 196 | Open 197 | ] 198 | ], 199 | Cell[ 200 | CellGroupData[ 201 | { 202 | Cell[ 203 | "Related Guides", 204 | "GuideMoreAboutSection", 205 | CellID -> 441329109 206 | ], 207 | Cell["XXXX", "GuideMoreAbout", CellID -> 535695898], 208 | Cell["XXXX", "GuideMoreAbout", CellID -> 211482343] 209 | }, 210 | Open 211 | ] 212 | ], 213 | Cell[ 214 | CellGroupData[ 215 | { 216 | Cell[ 217 | "Related Links", 218 | "GuideRelatedLinksSection", 219 | CellID -> 41540409 220 | ], 221 | Cell[ 222 | TextData[ 223 | ButtonBox[ 224 | "https://github.com/WolframResearch/PacletCICD-Examples-Sample", 225 | BaseStyle -> "Hyperlink", 226 | ButtonData -> { 227 | URL[ 228 | "https://github.com/WolframResearch/PacletCICD-Examples-Sample" 229 | ], 230 | None 231 | } 232 | ] 233 | ], 234 | "GuideRelatedLinks", 235 | CellID -> 198729364 236 | ], 237 | Cell[ 238 | TextData[ 239 | ButtonBox[ 240 | "https://github.com/WolframResearch/PacletCICD", 241 | BaseStyle -> "Hyperlink", 242 | ButtonData -> { 243 | URL["https://github.com/WolframResearch/PacletCICD"], 244 | None 245 | } 246 | ] 247 | ], 248 | "GuideRelatedLinks", 249 | CellID -> 79493166 250 | ] 251 | }, 252 | Open 253 | ] 254 | ] 255 | }, 256 | WindowStatusArea -> Automatic, 257 | TaggingRules -> { 258 | "InformationPopupMenuItemAdded" -> True, 259 | "Author" -> "rhennigan", 260 | "CreationDate" -> "04-08-2022 11:39:02", 261 | "NotebookIndexQ" -> True, 262 | "NotebookLastIndexed" -> 263 | DateObject[ 264 | {2022, 4, 8, 12, 45, 31.678}, 265 | "Instant", 266 | "Gregorian", 267 | -4.0 268 | ], 269 | "NotebookUUID" -> "466e6f27-4930-4efa-8001-80080d608140" 270 | }, 271 | FrontEndVersion -> "13.0 for Microsoft Windows (64-bit) (January 26, 2022)", 272 | StyleDefinitions -> 273 | FrontEnd`FileName[ 274 | {"Wolfram"}, 275 | "GuidePageStylesExt.nb", 276 | CharacterEncoding -> "UTF-8" 277 | ], 278 | ExpressionUUID -> "466e6f27-4930-4efa-8001-80080d608140" 279 | ] -------------------------------------------------------------------------------- /Documentation/English/ReferencePages/Symbols/AddOne.nb: -------------------------------------------------------------------------------- 1 | Notebook[ 2 | { 3 | Cell[ 4 | TextData[ 5 | { 6 | "New in: ", 7 | Cell["", "HistoryData", CellTags -> "New"], 8 | " | Modified in: ", 9 | Cell[" ", "HistoryData", CellTags -> "Modified"], 10 | " | Obsolete in: ", 11 | Cell[" ", "HistoryData", CellTags -> "Obsolete"], 12 | " | Excised in: ", 13 | Cell[" ", "HistoryData", CellTags -> "Excised"] 14 | } 15 | ], 16 | "History", 17 | CellID -> 2698149 18 | ], 19 | Cell[ 20 | "Created by: rhennigan on 02-06-2022 15:10:56", 21 | "AuthorDate", 22 | CellID -> 289698307 23 | ], 24 | Cell[ 25 | CellGroupData[ 26 | { 27 | Cell[ 28 | "Categorization", 29 | "CategorizationSection", 30 | CellID -> 1890843 31 | ], 32 | Cell[ 33 | "Symbol", 34 | "Categorization", 35 | CellLabel -> "Entity Type", 36 | CellID -> 278079557 37 | ], 38 | Cell[ 39 | "SamplePublisher/SamplePaclet", 40 | "Categorization", 41 | CellLabel -> "Paclet Name", 42 | CellID -> 315981816 43 | ], 44 | Cell[ 45 | "SamplePublisher`SamplePaclet`", 46 | "Categorization", 47 | CellLabel -> "Context", 48 | CellID -> 506589533 49 | ], 50 | Cell[ 51 | "SamplePublisher/SamplePaclet/ref/AddOne", 52 | "Categorization", 53 | CellLabel -> "URI", 54 | CellID -> 109513560 55 | ] 56 | }, 57 | Open 58 | ] 59 | ], 60 | Cell[ 61 | CellGroupData[ 62 | { 63 | Cell["Keywords", "KeywordsSection", CellID -> 115670179], 64 | Cell["XXXX", "Keywords", CellID -> 325425296] 65 | }, 66 | Open 67 | ] 68 | ], 69 | Cell[ 70 | CellGroupData[ 71 | { 72 | Cell[ 73 | "Syntax Templates", 74 | "TemplatesSection", 75 | CellID -> 78575420 76 | ], 77 | Cell[ 78 | BoxData[""], 79 | "Template", 80 | CellLabel -> "Additional Function Template", 81 | CellID -> 184088684 82 | ], 83 | Cell[ 84 | BoxData[""], 85 | "Template", 86 | CellLabel -> "Arguments Pattern", 87 | CellID -> 70479151 88 | ], 89 | Cell[ 90 | BoxData[""], 91 | "Template", 92 | CellLabel -> "Local Variables", 93 | CellID -> 389706526 94 | ], 95 | Cell[ 96 | BoxData[""], 97 | "Template", 98 | CellLabel -> "Color Equal Signs", 99 | CellID -> 635175035 100 | ] 101 | }, 102 | Open 103 | ] 104 | ], 105 | Cell[ 106 | CellGroupData[ 107 | { 108 | Cell["AddOne", "ObjectName", CellID -> 346081556], 109 | Cell[ 110 | TextData[ 111 | { 112 | Cell[" ", "ModInfo"], 113 | Cell[ 114 | BoxData[ 115 | RowBox[ 116 | { 117 | ButtonBox[ 118 | "AddOne", 119 | BaseStyle -> "Link", 120 | ButtonData -> "paclet:SamplePublisher/AdvancedSamplePaclet/CompiledLibraryExamplePaclet/ref/AddOne" 121 | ], 122 | "[", 123 | StyleBox["x", "TI"], 124 | "]" 125 | } 126 | ] 127 | ], 128 | "InlineFormula" 129 | ], 130 | " \[LineSeparator]adds one to ", 131 | Cell[BoxData[StyleBox["x", "TI"]], "InlineFormula"], 132 | "." 133 | } 134 | ], 135 | "Usage", 136 | CellID -> 855245927 137 | ], 138 | Cell["XXXX", "Notes", CellID -> 218348019] 139 | }, 140 | Open 141 | ] 142 | ], 143 | Cell[ 144 | CellGroupData[ 145 | { 146 | Cell["Tech Notes", "TechNotesSection", CellID -> 18719005], 147 | Cell["XXXX", "Tutorials", CellID -> 247007478] 148 | }, 149 | Open 150 | ] 151 | ], 152 | Cell[ 153 | CellGroupData[ 154 | { 155 | Cell[ 156 | "Related Demonstrations", 157 | "RelatedDemonstrationsSection", 158 | CellID -> 21983212 159 | ], 160 | Cell["XXXX", "RelatedDemonstrations", CellID -> 446759829] 161 | }, 162 | Open 163 | ] 164 | ], 165 | Cell[ 166 | CellGroupData[ 167 | { 168 | Cell[ 169 | "Related Links", 170 | "RelatedLinksSection", 171 | CellID -> 3101712 172 | ], 173 | Cell["XXXX", "RelatedLinks", CellID -> 10036333] 174 | }, 175 | Open 176 | ] 177 | ], 178 | Cell[ 179 | CellGroupData[ 180 | { 181 | Cell["See Also", "SeeAlsoSection", CellID -> 961950540], 182 | Cell["XXXX", "SeeAlso", CellID -> 129680049] 183 | }, 184 | Open 185 | ] 186 | ], 187 | Cell[ 188 | CellGroupData[ 189 | { 190 | Cell[ 191 | "Related Guides", 192 | "MoreAboutSection", 193 | CellID -> 140869081 194 | ], 195 | Cell["XXXX", "MoreAbout", CellID -> 96871097] 196 | }, 197 | Open 198 | ] 199 | ], 200 | Cell[ 201 | CellGroupData[ 202 | { 203 | Cell[ 204 | BoxData[ 205 | InterpretationBox[ 206 | GridBox[ 207 | { 208 | { 209 | StyleBox["Examples", "PrimaryExamplesSection"], 210 | ButtonBox[ 211 | RowBox[ 212 | { 213 | RowBox[{"More", " ", "Examples"}], 214 | " ", 215 | "\[RightTriangle]" 216 | } 217 | ], 218 | BaseStyle -> "ExtendedExamplesLink", 219 | ButtonData :> "ExtendedExamples" 220 | ] 221 | } 222 | } 223 | ], 224 | $Line = 0; 225 | Null 226 | ] 227 | ], 228 | "PrimaryExamplesSection", 229 | CellID -> 498832176 230 | ], 231 | Cell[ 232 | BoxData[ 233 | RowBox[ 234 | {"Needs", "[", "\"SamplePublisher`SamplePaclet`\"", "]"} 235 | ] 236 | ], 237 | "Input", 238 | InitializationCell -> True, 239 | CellLabel -> "In[1]:=", 240 | CellID -> 37376475 241 | ], 242 | Cell[ 243 | "Add one to a number:", 244 | "ExampleText", 245 | CellID -> 680947663 246 | ], 247 | Cell[ 248 | CellGroupData[ 249 | { 250 | Cell[ 251 | BoxData[RowBox[{"AddOne", "[", "5", "]"}]], 252 | "Input", 253 | CellLabel -> "In[2]:=", 254 | CellID -> 562441377 255 | ], 256 | Cell[ 257 | BoxData["6"], 258 | "Output", 259 | CellLabel -> "Out[2]=", 260 | CellID -> 83977556 261 | ] 262 | }, 263 | Open 264 | ] 265 | ] 266 | }, 267 | Open 268 | ] 269 | ], 270 | Cell[ 271 | CellGroupData[ 272 | { 273 | Cell[ 274 | "More Examples", 275 | "ExtendedExamplesSection", 276 | CellTags -> "ExtendedExamples", 277 | CellID -> 237977234 278 | ], 279 | Cell[ 280 | BoxData[ 281 | InterpretationBox[ 282 | Cell["Scope", "ExampleSection"], 283 | $Line = 0; 284 | Null 285 | ] 286 | ], 287 | "ExampleSection", 288 | CellID -> 246542634 289 | ], 290 | Cell[ 291 | BoxData[ 292 | InterpretationBox[ 293 | Cell["Generalizations & Extensions", "ExampleSection"], 294 | $Line = 0; 295 | Null 296 | ] 297 | ], 298 | "ExampleSection", 299 | CellID -> 235892829 300 | ], 301 | Cell[ 302 | CellGroupData[ 303 | { 304 | Cell[ 305 | BoxData[ 306 | InterpretationBox[ 307 | Cell["Options", "ExampleSection"], 308 | $Line = 0; 309 | Null 310 | ] 311 | ], 312 | "ExampleSection", 313 | CellID -> 41840792 314 | ], 315 | Cell[ 316 | BoxData[ 317 | InterpretationBox[ 318 | Cell["XXXX", "ExampleSubsection"], 319 | $Line = 0; 320 | Null 321 | ] 322 | ], 323 | "ExampleSubsection", 324 | CellID -> 10033054 325 | ], 326 | Cell[ 327 | BoxData[ 328 | InterpretationBox[ 329 | Cell["XXXX", "ExampleSubsection"], 330 | $Line = 0; 331 | Null 332 | ] 333 | ], 334 | "ExampleSubsection", 335 | CellID -> 308687114 336 | ] 337 | }, 338 | Open 339 | ] 340 | ], 341 | Cell[ 342 | BoxData[ 343 | InterpretationBox[ 344 | Cell["Applications", "ExampleSection"], 345 | $Line = 0; 346 | Null 347 | ] 348 | ], 349 | "ExampleSection", 350 | CellID -> 102268982 351 | ], 352 | Cell[ 353 | BoxData[ 354 | InterpretationBox[ 355 | Cell["Properties & Relations", "ExampleSection"], 356 | $Line = 0; 357 | Null 358 | ] 359 | ], 360 | "ExampleSection", 361 | CellID -> 605204674 362 | ], 363 | Cell[ 364 | BoxData[ 365 | InterpretationBox[ 366 | Cell["Possible Issues", "ExampleSection"], 367 | $Line = 0; 368 | Null 369 | ] 370 | ], 371 | "ExampleSection", 372 | CellID -> 480940539 373 | ], 374 | Cell[ 375 | BoxData[ 376 | InterpretationBox[ 377 | Cell["Interactive Examples", "ExampleSection"], 378 | $Line = 0; 379 | Null 380 | ] 381 | ], 382 | "ExampleSection", 383 | CellID -> 101638628 384 | ], 385 | Cell[ 386 | BoxData[ 387 | InterpretationBox[ 388 | Cell["Neat Examples", "ExampleSection"], 389 | $Line = 0; 390 | Null 391 | ] 392 | ], 393 | "ExampleSection", 394 | CellID -> 854742653 395 | ] 396 | }, 397 | Open 398 | ] 399 | ] 400 | }, 401 | TaggingRules -> <| 402 | "Author" -> "rhennigan", 403 | "CreationDate" -> "02-06-2022 15:10:56" 404 | |>, 405 | CellContext -> "Global`", 406 | FrontEndVersion -> "13.0 for Microsoft Windows (64-bit) (January 26, 2022)", 407 | StyleDefinitions -> FrontEnd`FileName[ 408 | {"Wolfram"}, 409 | "FunctionPageStylesExt.nb", 410 | CharacterEncoding -> "UTF-8" 411 | ], 412 | ExpressionUUID -> "993c5570-9393-4f7b-ae65-a80f3a87a584" 413 | ] -------------------------------------------------------------------------------- /Documentation/English/ReferencePages/Symbols/AddTwo.nb: -------------------------------------------------------------------------------- 1 | Notebook[ 2 | { 3 | Cell[ 4 | TextData[ 5 | { 6 | "New in: ", 7 | Cell["", "HistoryData", CellTags -> "New"], 8 | " | Modified in: ", 9 | Cell[" ", "HistoryData", CellTags -> "Modified"], 10 | " | Obsolete in: ", 11 | Cell[" ", "HistoryData", CellTags -> "Obsolete"], 12 | " | Excised in: ", 13 | Cell[" ", "HistoryData", CellTags -> "Excised"] 14 | } 15 | ], 16 | "History", 17 | CellID -> 442953916 18 | ], 19 | Cell[ 20 | "Created by: rhennigan on 02-06-2022 15:12:13", 21 | "AuthorDate", 22 | CellID -> 485145089 23 | ], 24 | Cell[ 25 | CellGroupData[ 26 | { 27 | Cell[ 28 | "Categorization", 29 | "CategorizationSection", 30 | CellID -> 227341607 31 | ], 32 | Cell[ 33 | "Symbol", 34 | "Categorization", 35 | CellLabel -> "Entity Type", 36 | CellID -> 102775589 37 | ], 38 | Cell[ 39 | "SamplePublisher/SamplePaclet", 40 | "Categorization", 41 | CellLabel -> "Paclet Name", 42 | CellID -> 13203781 43 | ], 44 | Cell[ 45 | "SamplePublisher`SamplePaclet`", 46 | "Categorization", 47 | CellLabel -> "Context", 48 | CellID -> 423919477 49 | ], 50 | Cell[ 51 | "SamplePublisher/SamplePaclet/ref/AddTwo", 52 | "Categorization", 53 | CellLabel -> "URI", 54 | CellID -> 123088812 55 | ] 56 | }, 57 | Open 58 | ] 59 | ], 60 | Cell[ 61 | CellGroupData[ 62 | { 63 | Cell["Keywords", "KeywordsSection", CellID -> 426345023], 64 | Cell["XXXX", "Keywords", CellID -> 160805281] 65 | }, 66 | Open 67 | ] 68 | ], 69 | Cell[ 70 | CellGroupData[ 71 | { 72 | Cell[ 73 | "Syntax Templates", 74 | "TemplatesSection", 75 | CellID -> 640652960 76 | ], 77 | Cell[ 78 | BoxData[""], 79 | "Template", 80 | CellLabel -> "Additional Function Template", 81 | CellID -> 956382 82 | ], 83 | Cell[ 84 | BoxData[""], 85 | "Template", 86 | CellLabel -> "Arguments Pattern", 87 | CellID -> 23784209 88 | ], 89 | Cell[ 90 | BoxData[""], 91 | "Template", 92 | CellLabel -> "Local Variables", 93 | CellID -> 8091423 94 | ], 95 | Cell[ 96 | BoxData[""], 97 | "Template", 98 | CellLabel -> "Color Equal Signs", 99 | CellID -> 356873526 100 | ] 101 | }, 102 | Open 103 | ] 104 | ], 105 | Cell[ 106 | CellGroupData[ 107 | { 108 | Cell["AddTwo", "ObjectName", CellID -> 19534339], 109 | Cell[ 110 | TextData[ 111 | { 112 | Cell[" ", "ModInfo"], 113 | Cell[ 114 | BoxData[ 115 | RowBox[ 116 | { 117 | ButtonBox[ 118 | "AddTwo", 119 | BaseStyle -> "Link", 120 | ButtonData -> "paclet:SamplePublisher/AdvancedSamplePaclet/CompiledLibraryExamplePaclet/ref/AddTwo" 121 | ], 122 | "[", 123 | StyleBox["x", "TI"], 124 | "]" 125 | } 126 | ] 127 | ], 128 | "InlineFormula" 129 | ], 130 | " \[LineSeparator]adds two to ", 131 | Cell[BoxData[StyleBox["x", "TI"]], "InlineFormula"], 132 | "." 133 | } 134 | ], 135 | "Usage", 136 | CellID -> 105697128 137 | ], 138 | Cell["XXXX", "Notes", CellID -> 1421668] 139 | }, 140 | Open 141 | ] 142 | ], 143 | Cell[ 144 | CellGroupData[ 145 | { 146 | Cell["Tech Notes", "TechNotesSection", CellID -> 347851740], 147 | Cell["XXXX", "Tutorials", CellID -> 162451092] 148 | }, 149 | Open 150 | ] 151 | ], 152 | Cell[ 153 | CellGroupData[ 154 | { 155 | Cell[ 156 | "Related Demonstrations", 157 | "RelatedDemonstrationsSection", 158 | CellID -> 45062672 159 | ], 160 | Cell["XXXX", "RelatedDemonstrations", CellID -> 238366849] 161 | }, 162 | Open 163 | ] 164 | ], 165 | Cell[ 166 | CellGroupData[ 167 | { 168 | Cell[ 169 | "Related Links", 170 | "RelatedLinksSection", 171 | CellID -> 186783056 172 | ], 173 | Cell["XXXX", "RelatedLinks", CellID -> 302714530] 174 | }, 175 | Open 176 | ] 177 | ], 178 | Cell[ 179 | CellGroupData[ 180 | { 181 | Cell["See Also", "SeeAlsoSection", CellID -> 784238168], 182 | Cell["XXXX", "SeeAlso", CellID -> 34451787] 183 | }, 184 | Open 185 | ] 186 | ], 187 | Cell[ 188 | CellGroupData[ 189 | { 190 | Cell[ 191 | "Related Guides", 192 | "MoreAboutSection", 193 | CellID -> 506359065 194 | ], 195 | Cell["XXXX", "MoreAbout", CellID -> 549981261] 196 | }, 197 | Open 198 | ] 199 | ], 200 | Cell[ 201 | CellGroupData[ 202 | { 203 | Cell[ 204 | BoxData[ 205 | InterpretationBox[ 206 | GridBox[ 207 | { 208 | { 209 | StyleBox["Examples", "PrimaryExamplesSection"], 210 | ButtonBox[ 211 | RowBox[ 212 | { 213 | RowBox[{"More", " ", "Examples"}], 214 | " ", 215 | "\[RightTriangle]" 216 | } 217 | ], 218 | BaseStyle -> "ExtendedExamplesLink", 219 | ButtonData :> "ExtendedExamples" 220 | ] 221 | } 222 | } 223 | ], 224 | $Line = 0; 225 | Null 226 | ] 227 | ], 228 | "PrimaryExamplesSection", 229 | CellID -> 487261667 230 | ], 231 | Cell[ 232 | BoxData[ 233 | RowBox[ 234 | {"Needs", "[", "\"SamplePublisher`SamplePaclet`\"", "]"} 235 | ] 236 | ], 237 | "Input", 238 | InitializationCell -> True, 239 | CellLabel -> "In[1]:=", 240 | CellID -> 37376475 241 | ], 242 | Cell[ 243 | "Add two to a number:", 244 | "ExampleText", 245 | CellID -> 680947663 246 | ], 247 | Cell[ 248 | CellGroupData[ 249 | { 250 | Cell[ 251 | BoxData[RowBox[{"AddTwo", "[", "5", "]"}]], 252 | "Input", 253 | CellLabel -> "In[2]:=", 254 | CellID -> 562441377 255 | ], 256 | Cell[ 257 | BoxData["7"], 258 | "Output", 259 | CellLabel -> "Out[2]=", 260 | CellID -> 92191522 261 | ] 262 | }, 263 | Open 264 | ] 265 | ] 266 | }, 267 | Open 268 | ] 269 | ], 270 | Cell[ 271 | CellGroupData[ 272 | { 273 | Cell[ 274 | "More Examples", 275 | "ExtendedExamplesSection", 276 | CellTags -> "ExtendedExamples", 277 | CellID -> 58008317 278 | ], 279 | Cell[ 280 | BoxData[ 281 | InterpretationBox[ 282 | Cell["Scope", "ExampleSection"], 283 | $Line = 0; 284 | Null 285 | ] 286 | ], 287 | "ExampleSection", 288 | CellID -> 158239516 289 | ], 290 | Cell[ 291 | BoxData[ 292 | InterpretationBox[ 293 | Cell["Generalizations & Extensions", "ExampleSection"], 294 | $Line = 0; 295 | Null 296 | ] 297 | ], 298 | "ExampleSection", 299 | CellID -> 56840277 300 | ], 301 | Cell[ 302 | CellGroupData[ 303 | { 304 | Cell[ 305 | BoxData[ 306 | InterpretationBox[ 307 | Cell["Options", "ExampleSection"], 308 | $Line = 0; 309 | Null 310 | ] 311 | ], 312 | "ExampleSection", 313 | CellID -> 814023423 314 | ], 315 | Cell[ 316 | BoxData[ 317 | InterpretationBox[ 318 | Cell["XXXX", "ExampleSubsection"], 319 | $Line = 0; 320 | Null 321 | ] 322 | ], 323 | "ExampleSubsection", 324 | CellID -> 342729074 325 | ], 326 | Cell[ 327 | BoxData[ 328 | InterpretationBox[ 329 | Cell["XXXX", "ExampleSubsection"], 330 | $Line = 0; 331 | Null 332 | ] 333 | ], 334 | "ExampleSubsection", 335 | CellID -> 278729250 336 | ] 337 | }, 338 | Open 339 | ] 340 | ], 341 | Cell[ 342 | BoxData[ 343 | InterpretationBox[ 344 | Cell["Applications", "ExampleSection"], 345 | $Line = 0; 346 | Null 347 | ] 348 | ], 349 | "ExampleSection", 350 | CellID -> 124342531 351 | ], 352 | Cell[ 353 | BoxData[ 354 | InterpretationBox[ 355 | Cell["Properties & Relations", "ExampleSection"], 356 | $Line = 0; 357 | Null 358 | ] 359 | ], 360 | "ExampleSection", 361 | CellID -> 230619992 362 | ], 363 | Cell[ 364 | BoxData[ 365 | InterpretationBox[ 366 | Cell["Possible Issues", "ExampleSection"], 367 | $Line = 0; 368 | Null 369 | ] 370 | ], 371 | "ExampleSection", 372 | CellID -> 364240322 373 | ], 374 | Cell[ 375 | BoxData[ 376 | InterpretationBox[ 377 | Cell["Interactive Examples", "ExampleSection"], 378 | $Line = 0; 379 | Null 380 | ] 381 | ], 382 | "ExampleSection", 383 | CellID -> 217509762 384 | ], 385 | Cell[ 386 | BoxData[ 387 | InterpretationBox[ 388 | Cell["Neat Examples", "ExampleSection"], 389 | $Line = 0; 390 | Null 391 | ] 392 | ], 393 | "ExampleSection", 394 | CellID -> 62185671 395 | ] 396 | }, 397 | Open 398 | ] 399 | ] 400 | }, 401 | TaggingRules -> <| 402 | "Author" -> "rhennigan", 403 | "CreationDate" -> "02-06-2022 15:12:13" 404 | |>, 405 | CellContext -> "Global`", 406 | FrontEndVersion -> "13.1 for Microsoft Windows (64-bit) (February 16, 2022)", 407 | StyleDefinitions -> FrontEnd`FileName[ 408 | {"Wolfram"}, 409 | "FunctionPageStylesExt.nb", 410 | CharacterEncoding -> "UTF-8" 411 | ], 412 | ExpressionUUID -> "1baa4172-0fb3-4562-b7ba-39e87846f736" 413 | ] -------------------------------------------------------------------------------- /Documentation/English/Tutorials/Arithmetic.nb: -------------------------------------------------------------------------------- 1 | Notebook[ 2 | { 3 | Cell[ 4 | TextData[ 5 | { 6 | "New in: ", 7 | Cell["", "HistoryData", CellTags -> "New"], 8 | " | Modified in: ", 9 | Cell[" ", "HistoryData", CellTags -> "Modified"], 10 | " | Obsolete in: ", 11 | Cell[" ", "HistoryData", CellTags -> "Obsolete"], 12 | " | Excised in: ", 13 | Cell[" ", "HistoryData", CellTags -> "Excised"] 14 | } 15 | ], 16 | "History", 17 | CellID -> 151537145 18 | ], 19 | Cell[ 20 | CellGroupData[ 21 | { 22 | Cell[ 23 | "Categorization", 24 | "CategorizationSection", 25 | CellID -> 720958107 26 | ], 27 | Cell[ 28 | "Tech Note", 29 | "Categorization", 30 | CellLabel -> "Entity Type", 31 | CellID -> 634641903 32 | ], 33 | Cell[ 34 | "SamplePublisher/SamplePaclet", 35 | "Categorization", 36 | CellLabel -> "Paclet Name", 37 | CellID -> 162634724 38 | ], 39 | Cell[ 40 | "SamplePublisher`SamplePaclet`", 41 | "Categorization", 42 | CellLabel -> "Context", 43 | CellID -> 107266034 44 | ], 45 | Cell[ 46 | "SamplePublisher/SamplePaclet/tutorial/Arithmetic", 47 | "Categorization", 48 | CellLabel -> "URI", 49 | CellID -> 323052657 50 | ] 51 | }, 52 | Open 53 | ] 54 | ], 55 | Cell[ 56 | CellGroupData[ 57 | { 58 | Cell["Keywords", "KeywordsSection", CellID -> 312834638], 59 | Cell["XXXX", "Keywords", CellID -> 89160598] 60 | }, 61 | Closed 62 | ] 63 | ], 64 | Cell[ 65 | CellGroupData[ 66 | { 67 | Cell["Arithmetic", "Title", CellID -> 230029336], 68 | Cell[ 69 | "Arithmetic is hard. This tutorial does not address that in any way. If anything, this will make it harder. SamplePublisher/SamplePaclet gives you all the functions you need to do harder-than-necessary arithmetic.", 70 | "Text", 71 | CellID -> 3438887 72 | ], 73 | Cell[ 74 | BoxData[ 75 | GridBox[ 76 | { 77 | { 78 | ButtonBox[ 79 | "AddOne", 80 | BaseStyle -> "Link", 81 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddOne" 82 | ], 83 | Cell["add one to something", "TableText"] 84 | }, 85 | { 86 | ButtonBox[ 87 | "AddTwo", 88 | BaseStyle -> "Link", 89 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddTwo" 90 | ], 91 | Cell["add two to something", "TableText"] 92 | } 93 | } 94 | ] 95 | ], 96 | "DefinitionBox", 97 | CellID -> 27794316 98 | ], 99 | Cell[ 100 | "Two uninteresting functions (one is less interesting than the other).", 101 | "Caption", 102 | CellID -> 261768492 103 | ], 104 | Cell[ 105 | CellGroupData[ 106 | { 107 | Cell["Natural numbers", "Subsection", CellID -> 440848074], 108 | Cell[ 109 | BoxData[RowBox[{RowBox[{"$Line", "=", "0"}], ";"}]], 110 | "Input", 111 | "FutureExample", 112 | CellDingbat -> Cell[ 113 | BoxData[ 114 | TooltipBox[ 115 | Cell["rhennigan ", "TentativeID"], 116 | "2022-04-08" 117 | ] 118 | ], 119 | "TentativeWrapper" 120 | ], 121 | CellLabel -> "In[6]:=", 122 | CellID -> 301997458 123 | ], 124 | Cell[ 125 | CellGroupData[ 126 | { 127 | Cell[ 128 | TextData[ 129 | { 130 | "Create a revolutionary function that gives you the ", 131 | Cell[ 132 | BoxData[ 133 | SuperscriptBox[StyleBox["n", "TI"], StyleBox["th", "TI"]] 134 | ], 135 | "InlineFormula", 136 | FormatType -> StandardForm 137 | ], 138 | " natural number:" 139 | } 140 | ], 141 | "MathCaption", 142 | CellID -> 233718922 143 | ], 144 | Cell[ 145 | BoxData[ 146 | RowBox[ 147 | { 148 | RowBox[ 149 | { 150 | RowBox[{"naturalNumber", "[", "n_", "]"}], 151 | ":=", 152 | RowBox[ 153 | {"Nest", "[", RowBox[{"AddOne", ",", "0", ",", "n"}], "]"} 154 | ] 155 | } 156 | ], 157 | ";" 158 | } 159 | ] 160 | ], 161 | "Input", 162 | CellLabel -> "In[1]:=", 163 | CellID -> 591784741 164 | ] 165 | }, 166 | Open 167 | ] 168 | ], 169 | Cell[ 170 | CellGroupData[ 171 | { 172 | Cell[ 173 | "Simply incredible:", 174 | "MathCaption", 175 | CellID -> 44169364 176 | ], 177 | Cell[ 178 | CellGroupData[ 179 | { 180 | Cell[ 181 | BoxData[RowBox[{"naturalNumber", "[", "5", "]"}]], 182 | "Input", 183 | CellLabel -> "In[2]:=", 184 | CellID -> 353803867 185 | ], 186 | Cell[ 187 | BoxData["5"], 188 | "Output", 189 | CellLabel -> "Out[2]=", 190 | CellID -> 37377235 191 | ] 192 | }, 193 | Open 194 | ] 195 | ] 196 | }, 197 | Open 198 | ] 199 | ], 200 | Cell[ 201 | CellGroupData[ 202 | { 203 | Cell[ 204 | "The number 24 was previously believed to be the highest number:", 205 | "MathCaption", 206 | CellID -> 463160428 207 | ], 208 | Cell[ 209 | CellGroupData[ 210 | { 211 | Cell[ 212 | BoxData[RowBox[{"naturalNumber", "[", "24", "]"}]], 213 | "Input", 214 | CellLabel -> "In[3]:=", 215 | CellID -> 325481993 216 | ], 217 | Cell[ 218 | BoxData["24"], 219 | "Output", 220 | CellLabel -> "Out[3]=", 221 | CellID -> 38900116 222 | ] 223 | }, 224 | Open 225 | ] 226 | ] 227 | }, 228 | Open 229 | ] 230 | ], 231 | Cell[ 232 | CellGroupData[ 233 | { 234 | Cell[ 235 | "Achieve a new record:", 236 | "MathCaption", 237 | CellID -> 99027262 238 | ], 239 | Cell[ 240 | CellGroupData[ 241 | { 242 | Cell[ 243 | BoxData[RowBox[{"naturalNumber", "[", "46", "]"}]], 244 | "Input", 245 | CellLabel -> "In[4]:=", 246 | CellID -> 57697528 247 | ], 248 | Cell[ 249 | BoxData["46"], 250 | "Output", 251 | CellLabel -> "Out[4]=", 252 | CellID -> 963072413 253 | ] 254 | }, 255 | Open 256 | ] 257 | ] 258 | }, 259 | Open 260 | ] 261 | ] 262 | }, 263 | Open 264 | ] 265 | ], 266 | Cell[ 267 | CellGroupData[ 268 | { 269 | Cell["Addition", "Subsection", CellID -> 133324819], 270 | Cell[ 271 | CellGroupData[ 272 | { 273 | Cell[ 274 | TextData[ 275 | { 276 | Cell[ 277 | BoxData[ 278 | ButtonBox[ 279 | "AddOne", 280 | BaseStyle -> "Link", 281 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddOne" 282 | ] 283 | ], 284 | "InlineFormula" 285 | ], 286 | " is all you need to add any numbers:" 287 | } 288 | ], 289 | "MathCaption", 290 | CellID -> 267834415 291 | ], 292 | Cell[ 293 | BoxData[ 294 | RowBox[ 295 | { 296 | RowBox[ 297 | { 298 | RowBox[{"plus", "[", RowBox[{"x_", ",", "y_"}], "]"}], 299 | ":=", 300 | RowBox[ 301 | {"Nest", "[", RowBox[{"AddOne", ",", "x", ",", "y"}], "]"} 302 | ] 303 | } 304 | ], 305 | ";" 306 | } 307 | ] 308 | ], 309 | "Input", 310 | CellLabel -> "In[1]:=", 311 | CellID -> 429040293 312 | ], 313 | Cell[ 314 | CellGroupData[ 315 | { 316 | Cell[ 317 | BoxData[ 318 | RowBox[{"plus", "[", RowBox[{"3", ",", "4"}], "]"}] 319 | ], 320 | "Input", 321 | CellLabel -> "In[2]:=", 322 | CellID -> 36382794 323 | ], 324 | Cell[ 325 | BoxData["7"], 326 | "Output", 327 | CellLabel -> "Out[2]=", 328 | CellID -> 52162604 329 | ] 330 | }, 331 | Open 332 | ] 333 | ] 334 | }, 335 | Open 336 | ] 337 | ], 338 | Cell[ 339 | CellGroupData[ 340 | { 341 | Cell[ 342 | "This is a really big number:", 343 | "MathCaption", 344 | CellID -> 284109211 345 | ], 346 | Cell[ 347 | CellGroupData[ 348 | { 349 | Cell[ 350 | BoxData[ 351 | RowBox[{"plus", "[", RowBox[{"42", ",", "1337"}], "]"}] 352 | ], 353 | "Input", 354 | CellLabel -> "In[3]:=", 355 | CellID -> 122263726 356 | ], 357 | Cell[ 358 | BoxData["1379"], 359 | "Output", 360 | CellLabel -> "Out[3]=", 361 | CellID -> 147506119 362 | ] 363 | }, 364 | Open 365 | ] 366 | ] 367 | }, 368 | Open 369 | ] 370 | ], 371 | Cell[ 372 | CellGroupData[ 373 | { 374 | Cell[ 375 | "Assume that negative numbers do not exist:", 376 | "MathCaption", 377 | CellID -> 265020123 378 | ], 379 | Cell[ 380 | CellGroupData[ 381 | { 382 | Cell[ 383 | BoxData[ 384 | RowBox[ 385 | {"plus", "[", RowBox[{"5", ",", RowBox[{"-", "3"}]}], "]"} 386 | ] 387 | ], 388 | "Input", 389 | CellLabel -> "In[4]:=", 390 | CellID -> 729280220 391 | ], 392 | Cell[ 393 | BoxData[ 394 | TemplateBox[ 395 | { 396 | "Nest", 397 | "intnm", 398 | "\"Non-negative machine-sized integer expected at position \\!\\(\\*RowBox[{\\\"3\\\"}]\\) in \\!\\(\\*RowBox[{\\\"Nest\\\", \\\"[\\\", RowBox[{\\\"AddOne\\\", \\\",\\\", \\\"5\\\", \\\",\\\", RowBox[{\\\"-\\\", \\\"3\\\"}]}], \\\"]\\\"}]\\).\"", 399 | 2, 400 | 4, 401 | 8, 402 | 34018123167644280806, 403 | "Local" 404 | }, 405 | "MessageTemplate" 406 | ] 407 | ], 408 | "Message", 409 | "MSG", 410 | CellLabel -> "During evaluation of In[4]:=", 411 | CellID -> 11096501 412 | ], 413 | Cell[ 414 | BoxData[ 415 | RowBox[ 416 | { 417 | "Nest", 418 | "[", 419 | RowBox[{"AddOne", ",", "5", ",", RowBox[{"-", "3"}]}], 420 | "]" 421 | } 422 | ] 423 | ], 424 | "Output", 425 | CellLabel -> "Out[4]=", 426 | CellID -> 679153292 427 | ] 428 | }, 429 | Open 430 | ] 431 | ] 432 | }, 433 | Open 434 | ] 435 | ], 436 | Cell[ 437 | CellGroupData[ 438 | { 439 | Cell[ 440 | "Real numbers are too weird to be used in arithmetic anyway:", 441 | "MathCaption", 442 | CellID -> 872682586 443 | ], 444 | Cell[ 445 | CellGroupData[ 446 | { 447 | Cell[ 448 | BoxData[ 449 | RowBox[{"plus", "[", RowBox[{"5", ",", "1.23"}], "]"}] 450 | ], 451 | "Input", 452 | CellLabel -> "In[5]:=", 453 | CellID -> 540956481 454 | ], 455 | Cell[ 456 | BoxData[ 457 | TemplateBox[ 458 | { 459 | "Nest", 460 | "intnm", 461 | "\"Non-negative machine-sized integer expected at position \\!\\(\\*RowBox[{\\\"3\\\"}]\\) in \\!\\(\\*RowBox[{\\\"Nest\\\", \\\"[\\\", RowBox[{\\\"AddOne\\\", \\\",\\\", \\\"5\\\", \\\",\\\", \\\"1.23`\\\"}], \\\"]\\\"}]\\).\"", 462 | 2, 463 | 5, 464 | 9, 465 | 34018123167644280806, 466 | "Local" 467 | }, 468 | "MessageTemplate" 469 | ] 470 | ], 471 | "Message", 472 | "MSG", 473 | CellLabel -> "During evaluation of In[5]:=", 474 | CellID -> 277168289 475 | ], 476 | Cell[ 477 | BoxData[ 478 | RowBox[ 479 | { 480 | "Nest", 481 | "[", 482 | RowBox[{"AddOne", ",", "5", ",", "1.23`"}], 483 | "]" 484 | } 485 | ] 486 | ], 487 | "Output", 488 | CellLabel -> "Out[5]=", 489 | CellID -> 530442243 490 | ] 491 | }, 492 | Open 493 | ] 494 | ] 495 | }, 496 | Open 497 | ] 498 | ] 499 | }, 500 | Open 501 | ] 502 | ], 503 | Cell[ 504 | CellGroupData[ 505 | { 506 | Cell["Multiplication", "Subsection", CellID -> 447791814], 507 | Cell[ 508 | CellGroupData[ 509 | { 510 | Cell[ 511 | TextData[ 512 | { 513 | Cell[ 514 | BoxData[ 515 | ButtonBox[ 516 | "AddOne", 517 | BaseStyle -> "Link", 518 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/ref/AddOne" 519 | ] 520 | ], 521 | "InlineFormula" 522 | ], 523 | " is all you need to multiply any numbers:" 524 | } 525 | ], 526 | "MathCaption", 527 | CellID -> 250141956 528 | ], 529 | Cell[ 530 | BoxData[ 531 | RowBox[ 532 | { 533 | RowBox[ 534 | { 535 | RowBox[{"times", "[", RowBox[{"x_", ",", "y_"}], "]"}], 536 | ":=", 537 | RowBox[ 538 | { 539 | "Nest", 540 | "[", 541 | RowBox[ 542 | { 543 | RowBox[ 544 | { 545 | RowBox[{"OperatorApplied", "[", "plus", "]"}], 546 | "[", 547 | "x", 548 | "]" 549 | } 550 | ], 551 | ",", 552 | "0", 553 | ",", 554 | "y" 555 | } 556 | ], 557 | "]" 558 | } 559 | ] 560 | } 561 | ], 562 | ";" 563 | } 564 | ] 565 | ], 566 | "Input", 567 | CellLabel -> "In[6]:=", 568 | CellID -> 429797389 569 | ], 570 | Cell[ 571 | CellGroupData[ 572 | { 573 | Cell[ 574 | BoxData[ 575 | RowBox[{"times", "[", RowBox[{"3", ",", "4"}], "]"}] 576 | ], 577 | "Input", 578 | CellLabel -> "In[7]:=", 579 | CellID -> 14781145 580 | ], 581 | Cell[ 582 | BoxData["12"], 583 | "Output", 584 | CellLabel -> "Out[7]=", 585 | CellID -> 4372310 586 | ] 587 | }, 588 | Open 589 | ] 590 | ] 591 | }, 592 | Open 593 | ] 594 | ], 595 | Cell[ 596 | CellGroupData[ 597 | { 598 | Cell[ 599 | "Just look at the absolute size of this number:", 600 | "MathCaption", 601 | CellID -> 633987668 602 | ], 603 | Cell[ 604 | CellGroupData[ 605 | { 606 | Cell[ 607 | BoxData[ 608 | RowBox[{"times", "[", RowBox[{"42", ",", "1337"}], "]"}] 609 | ], 610 | "Input", 611 | CellLabel -> "In[8]:=", 612 | CellID -> 471225119 613 | ], 614 | Cell[ 615 | BoxData["56154"], 616 | "Output", 617 | CellLabel -> "Out[8]=", 618 | CellID -> 572668373 619 | ] 620 | }, 621 | Open 622 | ] 623 | ] 624 | }, 625 | Open 626 | ] 627 | ] 628 | }, 629 | Open 630 | ] 631 | ], 632 | Cell[ 633 | CellGroupData[ 634 | { 635 | Cell[ 636 | "Advanced Mathematics", 637 | "Subsection", 638 | CellID -> 91177980 639 | ], 640 | Cell[ 641 | "Subtraction and division are considered very difficult and should be left to professionals.", 642 | "Text", 643 | CellID -> 19629590 644 | ] 645 | }, 646 | Open 647 | ] 648 | ], 649 | Cell[ 650 | CellGroupData[ 651 | { 652 | Cell[ 653 | "Related Guides", 654 | "TutorialMoreAboutSection", 655 | CellID -> 442209837 656 | ], 657 | Cell[ 658 | TextData[ 659 | ButtonBox[ 660 | "Sample Guide", 661 | BaseStyle -> "Link", 662 | ButtonData -> "paclet:SamplePublisher/SamplePaclet/guide/SampleGuide" 663 | ] 664 | ], 665 | "TutorialMoreAbout", 666 | CellID -> 35572552 667 | ] 668 | }, 669 | Open 670 | ] 671 | ], 672 | Cell[ 673 | CellGroupData[ 674 | { 675 | Cell[ 676 | "Related Tech Notes", 677 | "RelatedTutorialsSection", 678 | CellID -> 26507238 679 | ], 680 | Cell["XXXX", "RelatedTutorials", CellID -> 20645852] 681 | }, 682 | Open 683 | ] 684 | ] 685 | }, 686 | Open 687 | ] 688 | ] 689 | }, 690 | WindowStatusArea -> Automatic, 691 | TaggingRules -> { 692 | "InformationPopupMenuItemAdded" -> True, 693 | "NotebookIndexQ" -> True, 694 | "NotebookLastIndexed" -> DateObject[ 695 | {2022, 4, 8, 12, 45, 31.9168217`9.256594542082341}, 696 | "Instant", 697 | "Gregorian", 698 | -4. 699 | ], 700 | "NotebookUUID" -> "4e691753-3ac5-44c6-aa24-ac9453b87583" 701 | }, 702 | FrontEndVersion -> "13.0 for Microsoft Windows (64-bit) (January 26, 2022)", 703 | StyleDefinitions -> FrontEnd`FileName[ 704 | {"Wolfram"}, 705 | "TechNotePageStylesExt.nb", 706 | CharacterEncoding -> "UTF-8" 707 | ], 708 | ExpressionUUID -> "4e691753-3ac5-44c6-aa24-ac9453b87583" 709 | ] --------------------------------------------------------------------------------