Maplesoft Blog

The Maplesoft blog contains posts coming from the heart of Maplesoft. Find out what is coming next in the world of Maple, and get the best tips and tricks from the Maple experts.

 

The recent Maple 2023 release comes with a multitude of new features, including a new Canvas Scripting Gallery full of templates for creating interactive Maple Learn documents.

The Maple Learn Scripting Gallery can be accessed through Maple, by searching “BuildInteractiveContent Maple2023” in the search bar at the top of the application and clicking on the only result that appears. This will bring you to the help page titled “Build and Share Interactive Content”, which can also be found by searching “scripting gallery” in the search bar of a Maple help page window. The link to the Maple Learn Scripting Gallery is found under the “Canvas Scripting” section on this help page and clicking on it will open a Maple workbook full of examples and templates for you to explore.

The interactive content in the Scripting Gallery is organized into five main categories – Graphing, Visualization, Quiz, Add-ons and Options, and Applications Optimized for Maple Learn – each with its own sub-categories, templates, and examples.

One of the example scripts that I find particularly interesting is the “Normal Distribution” script, under the Visualizations category.

 

 

All of the code for each of the examples and templates in the gallery is provided, so we can see exactly how the Normal Distribution script creates a Maple Learn canvas. It displays a list of grades, a plot for the grade distribution to later appear on, math groups for the data’s mean and variance, and finally a “Calculate” button that runs a function called UpdateStats.

The initial grades loaded into the document result in the below plot, created using Maple’s DensityPlot and Histogram functions, from the Statistics package. 




 

The UpdateStats function takes the data provided in the list of grades and uses a helper function, getDist, to generate the new plot to display the data, the distribution, the mean, and the variance. Then, the function uses a Script object to update the Maple Learn canvas with the new plot and information.

The rest of the code is contained in the getDist function, which uses a variety of functions from Maple’s Statistics package. The Normal Distribution script takes advantage of Maple’s ability to easily calculate mean and variance for data sets, and to use that information to create different types of random variable distributions.

Using the “Interactive Visualization” template, provided in the gallery, many more interactive documents can be created, like this Polyhedra Visualization and this Damped Harmonic Oscillator – both from the Scripted Gallery or like my own Linear Regression: Method of Least Squares document.


 

Another new feature of Maple 2023 is the Quiz Builder, also featured in the Scripting Gallery. Quizzes created using Quiz Builder can be displayed in Maple or launched as Maple Learn quizzes, and the process for creating such a quiz is short.

The QuizBuilder template also provides access to many structured examples, available from a dropdown list:


As an example, check out this Maple Learn quiz on Expected Value: Continuous Practice. Here is what the quiz looks like when generated in Maple:


 

This quiz, in particular, is “Fill-in the blank” style, but Maple users can also choose “Multiple Choice”, “True/False”, “Multiple Select”, or “Multi-Line Feedback”. It also makes use of all of the featured code regions from the template, providing functionality for checking inputted answers, generating more questions, showing comprehensive solutions, and providing a hint at the press of a button.

Check out the Maple Learn Scripting Gallery for yourself and see what kinds of interactive content you can make for Maple and Maple Learn!

 

In an age where our lives are increasingly integrated online, cybersecurity is more important than ever. Cybersecurity is the practice of protecting online information, systems, and networks from malicious parties. Whenever you access your email, check your online banking, or make a post on Facebook, you are relying on cybersecurity systems to keep your personal information safe. 

Requiring that users enter their password is a common security practice, but it is nowhere near hacker-proof. A common password-hacking strategy is the brute-force attack. This is when a hacker uses an automated program to guess random passwords until the right one is found. The dictionary attack is a similar hacking strategy, where guesses come from a list like the 10,000 Most Common Passwords.

The easiest way to prevent this kind of breach is to use strong passwords. First, to protect against dictionary attacks, never use a common password like “1234” or “password”. Second, to protect against brute-force attacks, consider how the length and characters used affect the guessability. Hackers often start by guessing short passwords using limited types of characters, so the longer and more special characters used, the better.

Using the Strong Password Exploration Maple Learn document, you can explore how susceptible your passwords may be to a brute-force attack. For example, a 6-character password using only lowercase letters and numbers could take as little as 2 seconds to hack.

Whereas an 8-character password using uppercase letters, lowercase letters, and 10 possible special characters could take more than 60 hours to crack.

These hacking times are only estimations, but they do provide insight into the relative strength of different passwords. To learn more about password possibilities, check out the Passwords Collection on Maple Learn

The areas of statistics and probability are my favorite in mathematics. This is because I like to be able to draw conclusions from data and predict the future with past trends. Probability is also fascinating to me since it allows us to make more educated decisions about real-life events. Since we are supposed to get a big snow storm in Waterloo, I thought I would write a blog post discussing conditional probability using the Probability Tree Generator, created by Miles Simmons.

If the probability of snowfall on any given day during a Waterloo winter is 0.75, the probability that the schools are closed given that it has snowed is 0.6, and the probability that the schools are closed given that it has hasn’t snowed is 0.1, then we get the following probability tree, created by Miles’s learn document:

From this information we can come to some interesting conclusions:

What is the probability that the schools are closed on a given day?

From the Law of total probability, we get:

Thus, during a very snowy Waterloo winter, we could expect a 0.475 chance of schools being closed on any given day. 

One of the features of this document is that the node probabilities are calculated. You can see this by comparing the second last step to the number at the end of probability trees' nodes.

What is the probability that it has snowed given that the schools are closed?

From Bayes’ Theorem, we get:

Thus, during a very snowy Waterloo winter, we expect there to be a probability of 0.947 that it has snowed if the schools are closed. 

We can also add more events to the tree. For example, if the students are happy or sad given that the schools are open:

Even though we would all love schools to be closed 47.5% of the winter days in Waterloo, these numbers were just for fun. So, the next time you are hoping for a snow day, make sure to wear your pajamas inside out and sleep with a spoon under your pillow that night!

To explore more probability tree fun, be sure to check out Miles’s Probability Tree Generator, where you can create your own probability trees with automatically calculated node probabilities and export your tree to a blank Maple Learn document. Finally, if you are interested in seeing more of our probability collection, you can find it here!

 

The moment we've all been waiting for has arrived: Maple 2023 is here!

With this release we continue to pursue our mission to provide powerful technology to explore, derive, capture, solve and disseminate mathematical problems and their applications, and to make math easier to learn, understand, and use. Bearing this in mind, our team of mathematicians and developers have dedicated the last year to adding new features and enhancements that not only improve the math engine but make that math engine more easily accessible within a user-friendly interface.

And if you ever wonder where our team gets inspiration, you don't need to look further than Maple Primes. Many of the improvements that went into Maple 2023 came as a direct result of feedback from users. I’ll highlight a few of those user-requested features below, and you can learn more about these, and many, many other improvements, in What’s New in Maple 2023.

  • The Plot Builder in Maple 2023 now allows you to build interactive plot explorations where parameters are controlled by sliders or dials, and customize them as easily as you can other plots

Plot Builder Explore

 

  • In Maple 2023, 2-D contour and density plots now feature a color bar to show the values of the gradations.


  • For those who write a lot of code:  You can now open your .mpl Maple code files directly in Maple’s code editor, where you can  view and edit the file from inside Maple using the editor’s syntax highlighting, command completion, and automatic indenting.

Programming Improvements

  • Integration has been improved in many ways. Here’s one of them:  The definite integration method that works via MeijerG convolutions now does a better job of checking conditions on parameters so that they are only applied under proper assumptions. It also tells you the conditions under which the method could have produced an answer, so if your problem does meet those conditions, you can add the appropriate assumptions to get your result.
  • Many people have asked that we make it easier for them to create more complex interactive Math Apps and applications that require programming, such as interactive clickable plots, quizzes that provide feedback, examples that provide solution steps. And I’m pleased to announce that we’ve done that in Maple 2023 with the introduction of the Quiz Builder and the Canvas Scripting Gallery.
    • The new Quiz Builder comes loaded with sample quizzes and makes it easy to create your own custom quiz questions. Launch the quiz builder next time you want to author interactive quizzes with randomized questions, different response types, hints, feedback, and show the solution. It’s probably one of my favorite features in Maple 2023.

  • The Scripting Gallery in Maple 2023 provides 44 templates and modifiable examples that make it easier to create more complex Math Apps and interactive applications that require programming. The Maple code used to build each application in the scripting gallery can be easily viewed, copied and modified, so you can customize specific applications or use the code as a starting point for your own work

  • Finally, here’s one that is bound to make a lot of people happy: You can finally have more than one help page open at the same time!

For more information about all the new features and enhancements in Maple 2023, check out the What’s New in Maple 2023.

P.S. In case you weren’t aware - in addition to Maple, the Maplesoft Mathematics Suite includes a variety of other complementary software products, including online and mobile solutions, that help you teach and learn math and math-related courses.  Even avid Maple users may find something of interest!

Hello everyone! Alex, Sarah, and I decided to create this collection of financial literacy documents as we noticed a lack of resources for this strand in mathematics. With many curricula around the world implementing financial literacy concepts, we thought it might be useful not just for Ontario, but for many jurisdictions around the world. 

There are 4 documents in the Simple Interest collection; Introduction, Equation Generator, Mental Calculations, and Reflection. The Introduction is designed for intermediate and advanced level students as it introduces students to the concept of interest and how to calculate it. Students get to fill in the table by filling in the calculations on the right. This provides enough scaffolding so students of various grades can participate in this activity. 

 

The Equation Generator document uses sliders to help students investigate linear equations in the form of y=mx+b. It also relates the simple interest equation (I=Prt) to the linear equation by asking students to compare interest rates. The idea behind this document is to bridge concepts outlined in the 2021 grade 9 destreamed math curriculum; in particular, the financial literacy, and linear relations strands. The document provides some reflection questions for students to think about the relationship between the variables. 

The third document in the collection is the mental calculations document which presents a series of questions in increasing difficulty designed to help students compare interest rates. Students are intended to choose which scenario they think is more appropriate without using a calculator. There are hints provided on the right side if students wish for a hint, as well as explanations further to the right of the hints and answers below the main questions. Through our analysis of the curricula around the world, we noticed that many jurisdictions focus on mental math as a skill that their students should develop. Students may not always have access to a calculator and it is important for them to know how to make financially sound decisions or analyze advertisements that they may see around their neighbourhood. 

 

Lastly, the last document is the reflection page where students are able to analyze their findings. In particular, “interest” may carry a negative connotation for students such that we want them to think of the potential benefits of interest as well. The reflection questions are designed to help students consolidate their learnings and can be further expanded on by the teacher. Such possibilities can include scenario-based questions. 

May you find these documents helpful! 

 

Happy Valentine’s Day to everyone in the MaplePrimes community. Valentine’s Day is a time to celebrate all things love and romance. To celebrate, we at Maplesoft wanted to share our hearts with you.

 


 

Today the heart shape represents love, affection, and a major organ. Though the heart’s full meaning today is unique to the modern era, the shape itself is much older.

 In ancient Greece, the Cyrenese people used the heart-shaped seed of a plant called silphium as a form of contraception. The seed became so widely used that it is featured on Cyrenese currency. This is the first case of the heart shape being connected to love and passion, but the form did not yet have an association with the human heart.

French poet Thibault de Blaison was the first to use a pear-shaped human heart to symbolize love in his thirteenth-century romance “Roman de la Poire”. Later, during the renaissance period, artists began to paint the Sacred Heart of Jesus in a spade-like shape. Depictions of the heart continued to develop and by the Victorian Era, the heart we know and love today had taken shape and started to appear on Valentine’s Day cards.

The simplicity and symmetry of the heart shape, which likely led to its widespread popularity, also makes the form convenient to define mathematically.

To find the equation for your heart, use the Valentine Hearts Maple Learn document. Choose one of four ways to define your heart, then move the sliders and change the color to make a unique equation for your heart. 

Once you’re done, take a screenshot and share it with your Valentine. Who says math isn’t romantic?

 

 

Have you ever wondered who the students are that help create Maplesoft’s family of products?

In this blog, we thought that it was fitting to introduce ourselves and give the MaplePrimes community some insight into the students who are committed to helping Maplesoft improve its products and who believe that Math Matters!

I’ll begin. My name is Jack Thomson and I’m in my second year of the Mathematics (Waterloo) and Business Administration (Laurier) Double Degree. This term I am the Product Management Co-op at Maplesoft where I will be helping support the development of Maplesoft's academic market products, including Maple Learn and Maple Calculator. My favorite areas of math are statistics and probability. These areas are my favorite since I like to be able to draw conclusions from data and predict the future with past trends. I am also fascinated with probability since it allows us to make more educated decisions about real-life events. This ties into my belief of why Math Matters, since it is hidden in every aspect of life and helps us understand the world around us. Besides my love for the world of mathematics, I love the outdoors, more specifically, mountain biking, backcountry camping, and skiing. I also enjoy taking photos, watching Formula 1, playing hockey, and improving my skills in the kitchen.

Continue reading below to find out more about my fellow Co-op students!

Development:

I’m Zhengmao (he/him), and I’m a third year in Software Engineering at the University of Waterloo. I’ll be working until the end of April here at Maplesoft as a Software Developer, where I’ll be working to fix bugs, add new features, and improve existing ones for our Maple Learn as well as Maple Calculator products. By the way, if you ever have any suggestions or ideas about them, don’t hesitate to reach out to me!

I’ve always been curious about working at a math company because I’ve always been so interested in math. In fact, Maplesoft is the only company I’ve consistently applied to every time I’ve gone through the Co-op application cycle! However, there’s not really any particular reason why I enjoy the subject. I find math to be beautiful in and of itself, almost like an art, and I find the kinds of math that are more discrete or algebraic tend to be a little nicer. As long as there aren’t decimals, I’m pretty happy. So, my ideal kind of math is just that: ideal! Exact values, unrealistic ideas, and as few numbers as possible. In terms of my university career, I’ve always enjoyed linear algebra much more than calculus.

Overall, I’m quite excited for this term at Maplesoft. I’ve never worked in web or mobile development before, so I’m looking forward to learning a lot of new things!

Content Creation:

Hi, I’m Paige (she/her). I am a second-year Honors Mathematics student at the University of Waterloo. This term, I am creating content for the Maple Learn document gallery. My favorite area of math is calculus because I love visualizing functions. Math matters because it is a universal language. All the math concepts we know are naturally occurring; people have observed and documented them, but no one invented them. Because of this, people from a wide range of cultures have come to the same conclusions (ex: defining pi). Math is universally understandable, which is why it can be used to connect everyone on earth (and maybe on other planets too!?!?!?!). In my free time, I like doing hand embroidery, playing video games, and cuddling my cat Licky.

A cat sitting on a window sill

Description automatically generated with low confidence

 

My name is Laura (she/her) and I’m a second year in the math program at the University of Waterloo. This term, I am working as a ‘Math Content Developer’ at Maplesoft; I’ll be creating and scripting documents for Maple Learn’s Example Gallery, updating older content, and handling customer requests. My favorite areas of math are probability, since I find questions like the Birthday Problem interesting, and biostatistics because I enjoy learning about biology and how biological experiments can be analyzed mathematically. I believe math matters because mathematics is essential to sending equipment and people into outer space; we will never meet aliens without using math.

Quality Assurance:

Hey, my name is Stefan, I'm 19 years old and currently studying Biochemistry in second year at the University of Waterloo. I am a QA analyst here at Maplesoft, working on Maple 2023. Outside of school, a hobby of mine is making digital art. My favorite area of math is definitely calculus & analysis because I found learning the fundamental theorem really intuitive and engaging. Expanding on that, I believe math matters because of its many applications in other fields such as the use of calculus in the research and design aspects of Biochemistry.

 

Hey! My name is Steven Mou, I'm in CFM at UWaterloo and I'm going into my 2B term after this term. I'm one of the four QA Analyst interns and I'll be testing all things related to Maple. My favorite area of math is anything related to algebra. I just find being able to manipulate variables while maintaining the integrity of the final product, to be very fascinating. I believe math matters because our lives are pretty much completely founded by math; anything from the technology that we use to the logic that is the foundation of our thoughts. I like playing sports, dabbling with different recipes in the kitchen, and discussing any shows that I happen to always finish too quickly.

 

Hi, my name is Aidan and I'm a 3rd-year mathematical physics student working as a quality assurance analyst for this Co-op term. As a Co-op student working in QA, I will mostly be running tests and reporting bugs to help ensure that Maple 2023 as well as Maple Flow are ready for release. My favorite area of math is vector calculus because as I started learning it I found it very interesting in the ways it applies to things we use in our everyday life. It also combines Linear Algebra and Calculus in a way that I never would have expected before learning about it. I think that math matters because I feel as though everything you can interact with can be described and predicted mathematically and that amazes me.

 

Hello! My name is Sebastian, I am currently in my second year of physics and astronomy at UWaterloo, and for this Co-op, at Maplesoft, I am working as a quality assurance analyst. In this position, I will be performing tests on Maple and Maple Flow to ensure that when they are released they function as they should and are ready for consumers to use with ease. When I am not focused on my academics I enjoy spending my time playing soccer (also watching it), listening to music, and watching movies. My favorite area of math is calculus because of the interesting and complex problems it provides, and because it is an essential tool needed to understand how the universe works. I believe that math matters because, as teachers always remind us, it is all around us. Math provides the foundation for everything we know and have come to appreciate in our lives, so since it is seen so often in our lives, I believe we should put in the effort to understand it and grasp how cool it is.

When introduced to geometry, one of the first things we learn is the definition of the word “polygon”. A polygon is a closed 2-dimensional shape with at least 3 straight sides and angles. A regular polygon is a polygon with congruent sides and equal angles. A regular polygon with n sides has Schläfli symbol {n}. I’m interested in mathematical history, so when I learned that the idea of higher-dimensional spaces was invented in the middle of the nineteenth century I decided to research more about Ludwig Schläfli and the notation he came up with to describe his ideas.

 

In general, the Schläfli symbol is a notation of the form {p, q, r, ...} for regular polytopes. Polytopes are geometric objects with flat sides. This week, I will be focusing on 3-dimensional polytopes, also called polyhedra.

Similar to regular polygons, regular polyhedra are 3-dimensional shapes whose faces are all the same regular polygon. A regular polyhedron’s Schläfli symbol is of the form {p, q}, where p is the number of edges each face has and q is the number of faces that meet at each of the polyhedron’s vertices.

 

Below are two regular polyhedra: a cube (also known as a hexahedron) and a great stellated dodecahedron. The cube is one of five Platonic solids, and the great stellated dodecahedron is one of four Kepler-Poinsot polyhedra – all of these can be represented by Schläfli symbols. The cube has Schläfli symbol {4, 3}, since squares have 4 equal sides, and each vertex of a cube is created by the vertices of 3 squares meeting.

Can you figure out the Schläfli symbol for the great stellated dodecahedron?


The great stellated dodecahedron has the Schläfli symbol {5/2, 3}. This is because great stellated dodecahedrons are regular star polygons. As a result, the first number in their Schläfli symbol is an irreducible fraction whose numerator represents a number of sides and whose denominator corresponds to a turning number. The particular fraction 5/2 corresponds to a pentagram – a regular star polygon with 5 points – and great stellated dodecahedrons are composed of 12 of these pentagrams, where 3 pentagrams meet at each vertex of the shape.

One notable example of a regular polytope in pop culture is the tesseract, which has the Schläfli symbol {4, 3, 3}. This is an extension of the cube’s Schläfli symbol, {4, 3}, and the last number indicates that there are three cubes folded together around every edge. Below are two representations of a tesseract: one that uses a Schlegel diagram (left) and one from the 2012 movie Avengers (right).



Try out our Regular Polyhedra Visualization Using Schlafli Symbol Notation! In this document, you can test out your own Schläfli symbols for regular polyhedra. If they are valid Schläfli symbols, you’ll be provided with a 3-D visualization of the shape. If they are invalid, you can check out the logic for finding the specifications for regular polyhedra and this document, which provides all the 3-D regular polyhedra for you to try out.

Happy Lunar New Year to everyone in the MaplePrimes community, as we enter the Year of the Rabbit. The rabbit symbolizes longevity, positivity, auspiciousness, wittiness, cautiousness, cleverness, deftness and self-protection!

To celebrate, one of our Maple Learn content developers, Laura Layton, made a Lunar New Year Color by Number:

Table

Description automatically generated

In this puzzle, your goal is to simplify the modulo equations in each square, and then fill in the square with the color that corresponds to the answer.

I hope you have fun solving this puzzle and revealing the hidden images and I wish everyone good health and happiness in the coming year!

Last week, one of our Maple Learn developers, Valerie McKay-Crites, published a Maple Learn document, based on the very popular Maple application by Highschool Teacher, Jason Schattman called "Just Move It Over There, Dear!".

In the Maple application, Schattman explains the math behind moving a rectangular sofa down a hallway with a 90-degree turn. In the 3D Moving Sofa Problem Estimate, Valerie uses Schattman’s math to determine the largest rectangular sofa that can be taken down a flight of stairs and down a hallway with a 90-degree turn. Both applications reminded me of how interesting the Moving Sofa Problem is, which inspired me to write a blog post about it!

If you’ve ever been tasked with moving a rectangular sofa around a 90-degree turn, you might wonder:

What is the largest sofa that can make the move?

 

 Icon

Description automatically generated with medium confidence

 

Following these steps as outlined in Schattman’s "Just Move It Over There, Dear!", will guarantee that the sofa will make the turn:

  1. Measure the width of the hallway (h)
  2. Measure the length (L) and width (w) of the sofa.
  3. If L + 2w is comfortably less than triple the width of the hall, you'll make it!

When we work out the math exactly, we see that if the sofa's length plus double its width is less than 2*h*sqrt(2), the sofa will make the turn!

 

Chart, line chart

Description automatically generated

 

This problem is easy if we only consider rectangular sofas, however, the problem becomes significantly more complex if we consider sofas of different shapes and areas. In mathematics, this problem is known as the Moving Sofa Problem, and it is unsolved. If we look at a hallway with a 90-degree turn and legs of width 1 m (i.e. h = 1 above), the largest known sofa that can make the turn is Gerver’s Sofa which has an area of 2.2195 m2, this area is known as the Sofa Constant. Gerver’s Sofa, created in 1992, was constructed with 18 curve sections:

Icon

Description automatically generated

 

Check out this GIF of the sofa moving through the turn. It provides some insight into why Gerver’s sofa is such an interesting shape:

What is fascinating is that no mathematician has yet to prove that Gerver’s sofa is the sofa with the largest area capable of making the 90-degree turn.

The Moving Sofa Problem, is a great example of how math is embedded in our everyday lives. So, don’t stop being curious about the math around you as it can be fascinating and sometimes unproven!

If you are curious to learn more about the moving sofa problem check out this video by Numberphile, featuring Dan Romik from UC Davis: https://www.youtube.com/watch?v=rXfKWIZQIo4&t=1s

With the winter solstice speeding towards us, we thought we’d create some winter themed documents. Now that they’re here, it’s time to show you all! You’ll see two new puzzle documents in this post, along with three informative documents, so keep reading.

Let’s start with the tromino tree!

 

First, what’s a tromino? A tromino is a shape made from three equal sized squares, connected to the next along one full edge. In this puzzle, your goal is to take the trominos, and try to fill the Christmas tree shape.

There’s a smaller and larger tree shape, for different difficulties. Try and see how many ways you can fill the trees!

Next, we’ll look at our merry modulo color by numbers.

Table

Description automatically generated

In this puzzle, your goal is to solve the modulo problems in each square, and then fill in the square with the color that corresponds to the answer. Have fun solving the puzzle and seeing what the image is in the end!

Snowballs are a quintessential part of any winter season, and we’ve got two documents featuring them.

A picture containing icon

Description automatically generated

The first document uses a snowball rolling down a hill to illustrate a problem using differential equations. Disclaimer: The model is not intended to be realistic and is simplified for ease of illustration. This document features a unique visualization you shouldn’t miss!

Our second document featuring snowballs talks about finding the area of a 2-dimensional snowman! Using the formula for the area of a circle and a scale factor, the document walks through finding the area in a clear manner, with a cute snowman illustration to match!

Shape

Description automatically generated

The final document in this mini-series looks at Koch snowflakes, a type of fractal. This document walks you through the steps to create an iteration of the Koch snowflake and contains an interactive diagram to check your drawings with!

I hope you’ve enjoyed taking a look at our winter documents! Please let us know if there’s any other documents you’d like to see featured or created.

Welcome back to another Maple Learn blog post! Today we’re going to talk about the gift-wrapping algorithm, used to find the convex hull of a set of points. If you’re not sure what that means yet, don’t worry! We’re going to go through it with four Maple Learn documents; two which are background information on the topic, one that is a visualization for the gift-wrapping algorithm, and another that goes through the steps. Each will be under their own heading, so feel free to skip ahead to your skill level!

Before we can get into the gift-wrapping algorithm we need to define a few terms. Let’s start by defining polygons and simple polygons.

A picture containing text, person

Description automatically generated

Polygon: A closed shape created by joining a series of line segments.

Simple polygon: A polygon without holes and that does not intersect itself.

Shape, polygon

Description automatically generated

So, what are convex and concave polygons? Well, there are three criteria that define a convex polygon. A polygon that is not convex is called concave. The criteria are…

  1. Any line segment connecting any two points within the polygon stays within the polygon.
  2. Any line intersects a polygon’s boundary at most twice.
  3. All interior angles are less than 180 degrees or pi radians.

A picture containing chart

Description automatically generated

Because the criteria are equivalent, if any one is missing, the shape is concave. AKA, all three criteria must be present for a shape to be convex. Most “regular shapes”, such as trapezoids, are convex polygons!

A shape that satisfies convex criteria but not the criteria for being a polygon is called a convex set.

As mentioned at the start of this post, the gift-wrapping algorithm is used to find the convex hull of a set of points. Now that we know what convex polygons and convex sets are, we can define the convex hull!

Convex hull: The convex set of a shape or several shapes that fully contains the object and has the smallest possible area.

A picture containing text, stationary, envelope, businesscard

Description automatically generated

Why was the convex polygon important? Well, the convex hull of a set of points is always a convex polygon. Some of the points in the set are the vertices of said polygon, and are called extreme points. You can find the convex hull of either concave or convex polygons.

This document amazed me when I tried it for the first time. Here, you can generate a set of points with the “Generate Another” button, and then press the “Visualize” button. The document then calculates the perimeter of the convex hull of the set of points! The set can be further customized below the buttons, by changing the number of points. The other option below it allows you to slow down or speed up the visualization. Pretty cool, huh? It’s like it’s thinking!

Try the document out a few times, or watch the gif below to get a quick idea of it.

This final document walks you through the steps of how to use the gift wrapping algorithm. It is a simple loop of 4 steps, with one set-up step. Unlike the other documents in this post, I won’t be delving too far into the math behind the steps. I want to encourage you to check this one out yourself, as it’s really quite a fun problem to solve once you have some time!

Chart, line chart

Description automatically generated

I hope you check out the documents in this post. Please let us know below if there’s any other documents you’d like to see featured!

Have you ever heard of the Maurer Rose?

The Maurer Rose was demonstrated in 1987 by Peter Maurer and is created by connecting certain points on a rose curve. This creates petal-like patterns, caused by the oscillation of a sine curve.

 

Chart, radar chart

Description automatically generated

So, how are these created? A "rose curve" is created in polar coordinates with the equation sin(nt) for a (positive integer) value of n.  To create the Maurer Rose, straight line segments are drawn connecting points on the curve at incrementing angle values.  The size of this increment (called d in our examples) leads to different patterns of lines across the curve.

This can be done in Maple Learn! One example of the Maurer Rose already exists, complete with a full interactive visualization and a more detailed overview of the Maurer Rose.

Play around with it and look below at some of the different shapes that can be created using this document! The first is created with an n value of 31 and a d value of 65, with blue and red. The second uses an n value of 4 and a d value of 133, and purple and green.

Chart, diagram, radar chart

Description automatically generated

Are there any other concepts you’d like to see represented in Maple Learn’s document gallery? Please let us know in the comments below!

 

Have you heard of Maple Scripting before? Do you want to extend your Maple Learn documents with your Maple knowledge? Scripting is the process of using Maple to create Maple Learn documents. If you’re already used to Maple, this may be a piece of cake for you, but we wanted to start from the basics for anyone who wants to extend their Maple Learn and Maple knowledge. This process can be used for many different types of documents, from quizzes to intensive 3D visualizations.

So, let’s get started! All Maple Learn document scripting needs the DocumentTools:-Canvas package. The canvas, as you know, is that white space in a Maple Learn document. Therefore, this package is the core content of a scripted document! Always put:

with(DocumentTools:-Canvas):

At the top of your code, or put

uses DocumentTools:-Canvas:

At the start of your procedures.

Now that we’ve told Maple to use the DocumentTools:-Canvas, we need to create a canvas.

Canvases are created as variables, using the command NewCanvas. Inside NewCanvas, you will add a square-bracket list of all the content you want to see inside. For now, just know that you can add text cells with Text(“YOUR TEXT”) and a math cell with Math(YOUR MATH). On the next line, make sure to put either ShareCanvas(YOUR CANVAS VARIABLE) or ShowCanvas(YOUR CANVAS VARIABLE).  ShareCanvas creates a Maple Learn sharelink, while ShowCanvas shows the canvas directly in Maple. Note that ShowCanvas does not have every Maple Learn feature, but makes quick work of fast error checking.

canvas := NewCanvas([Text(“My first canvas”), Math(3*x+2*y)]):

ShareCanvas(canvas);

There are two more things I want to show you in this post: How to make a group have multiple cells (instead of just the one), and how to position your items on the canvas. Let’s start with group making.

To create a group with multiple cells, use the Group() command within the NewCanvas command, and separate the cells with commas, in a list. You don’t need to specify Text() or Math() when using Group().

canvas := NewCanvas([Group([“This is the first cell…”, “The second….”, “and the third.”])]):

At the end of any command/canvas element, within the brackets, you can define position=[x,y] to specify where on the canvas the object should go. You can adjust the precision pixel by pixel until you are happy with the layout.

When we put all these together, we get code that looks like this:

with(DocumentTools:-Canvas):

canvas := NewCanvas([

Group(["This is the first cell…", "The second…", "and the third."], position=[200,200]),

Math(3*x+2, position=[100,100]),

Text("This is text!", position=[400,400])]):

ShareCanvas(canvas);

And in the end, your scripted document looks like this.

We hope this helps you get started with Maple Scripting. There will be another post on even more of what we can do with Maple Scripting, and how we can make these documents even more interactive. Let us know if there’s anything specific you want to see in that post!

 

We've just released Maple Flow 2022.2. The update enhances the user experience in many areas, including user interaction, performance, and the interface.

Performance is a signficant focus.

  • Maple Flow prioritizes the evaluation of the math you see on screen, giving you faster calculation updates for the part of the worksheet you’re working on, with more math being evaluated as you scroll down.
  • We also have more users developing larger documents. Adding white space to large documents, and interacting with sections is now more response and snappier.

In response to many user requests for faster interaction, a new optional evaluation method lets you simply hit equals to evaluate math and display results.

We've also refreshed the in-product Application Gallery with a new look and many new applications (this includes a library of section properties).


 

You can also optionally restrict printing to the left-most column of pages, allowing you to have off-screen supporting calculations not displayed in the final report.

You'll find a complete list of enhhacements here, and you can download the update here.

2 3 4 5 6 7 8 Last Page 4 of 34