Uploads from Xah Lee

Watch and track your favorite playlist.

Curated by: Xah Lee (847 videos)


Currently Playing: Xah Ep718 Wolfram Language, Custom Function, 2d Graphics to SVG. Part 2

This video is the second part of a series focusing on writing a custom Wolfram Language function to convert Wolfram Language graphics to SVG. Here's a summary of what's covered: The creator demonstrates how to define and use Wolfram Language functions, specifically showing how to create graphics using primitives like Circle and Line (4:29, 56:00). The core of the video involves enhancing a previously written function called graphicsToSVGString to convert both Circle and Line graphic primitives into their corresponding SVG string representations (15:57, 56:00). A significant portion of the video discusses Wolfram Language's computational model, emphasizing its basis in pattern matching and term rewriting systems (26:59). This is contrasted with other programming language models. The creator then modifies the function to save the generated SVG string directly to a file, demonstrating the WriteString function (1:00:37). Finally, the video touches upon the challenges of converting Wolfram Language coordinates to SVG coordinates, including issues with origin centering, y-axis reversal, and the need for coordinate rescaling using SVG's viewBox (1:13:25). The video discusses different "centers" of a triangle, which are specific points within or related to a triangle. The speaker mentions the following: Circumcircle/Circumcenter (23:29): A circle that passes through all three vertices of a triangle. The center of this circle is the circumcenter. Inscribed Circle/Incenter (24:27): A circle of maximum size that fits inside a triangle, touching all three sides. The center of this circle is the incenter. The incenter is also described as the point where the three interior angle bisectors intersect (33:51). Other Centers: The video briefly touches on other centers like the centroid (34:42) and orthocenter (34:49). These are mentioned as part of a broader concept of "so-called centers" in geometry. The video discusses the concept and history of notebooks, particularly in the context of the Wolfram Language. Here's a summary: Origin: The speaker states that Wolfram Language (Mathematica) invented the notebook interface in 1989, making it the first of its kind (32:55). Jupyter Notebook: Jupyter Notebook is mentioned as a popular example that copied the Wolfram Language's notebook idea (33:01, 37:47). Advantages over Command Line/REPL: The speaker emphasizes that the notebook interface is superior to a command-line interface (CLI) or a "REPL" (Read-Eval-Print Loop) (47:09). Notebooks allow you to jump to and modify any part of the code at any time, unlike CLIs which are linear and force you into sequential input/output (47:09-47:45). Features: Notebooks can include features like headers, sections, bold/italic formatting, and automatic formatting/indentation of code (38:19, 53:02). Notes at http://xahlee.info/talk_show/xah_talk_show_ep718.html If browser says security error, that is because it auto changes URL from HTTP to HTTPS. It's a way to censor 22 million old websites. Remove the S in HTTPS. Or use brave browser or safari.


Tracks in this Playlist

✅ Progress Tracking

Automatically track which videos you have watched. Your completion status is updated at a glance, preventing you from re-watching episodes by mistake.

⏯️ Resume Playback

Never lose your spot. Our custom player remembers your exact video and timestamp, allowing you to dive right back in seamlessly.

📱 Cross-Device Sync

Sync your playlist states, watched progress, and premium preferences across your desktop, laptop, tablet, and mobile phone automatically.

Start Organizing Your YouTube Playlists

Simply paste any YouTube playlist URL or channel link in the application search bar to immediately generate a custom, sorted, and progress-tracked workspace. No registration required to start.

Explore Playlist Guides & How-Tos