Master Desmos: Plus Minus Trick
Ever found yourself wishing to display a continuous plus or minus sign in Desmos, but unsure how to go about it? You're not alone. Desmos, though highly intuitive and user-friendly, can sometimes present a slight learning curve. But fear not! This guide will walk you through the process, ensuring you master the art of displaying plus or minus signs on Desmos in no time. Let's dive right in.
Before we begin, it's crucial to understand that Desmos operates on a series of inputs. This means that to display a continuous plus or minus sign, you'll need to input mathematical expressions that when combined, create this effect. Sounds complex? It's not, we promise. Let's break it down step by step.
Understanding Desmos Inputs
Desmos accepts mathematical expressions as inputs. These expressions can be as simple as a single number, or as complex as a multivariable equation. The key to displaying a continuous plus or minus sign lies in understanding how Desmos interprets these inputs.
Desmos uses a specific syntax for inputs. You input expressions in the 'expression' bar at the top of the graphing calculator. To begin, let's familiarize ourselves with the basic syntax Desmos uses.
Basic Desmos Syntax
The basic syntax is straightforward. You input numbers, operations (like +, -, *, /), and functions (like sin, cos, tan) just as you would in a regular calculation. For example, typing '2+3' will display '5' on your graph. Easy enough, right?
Desmos also supports more complex expressions, such as '3*(2+1)' which evaluates to '9'. Now that we've got the basics down, let's explore how we can use these to display a continuous plus or minus sign.
Displaying Plus or Minus Signs
To display a continuous plus or minus sign, we'll use Desmos' functionality to interpret mathematical expressions as strings. This allows us to input text, including the plus or minus sign, directly into the graph.
To do this, wrap your plus or minus sign in quotes and use the concatenation operator (&). This tells Desmos to treat the input as a string. For example, inputting '"+"&"+"' will display '++'. Similarly, '"-"&"-"' will display '--'.
Now, let's take this a step further and create continuous plus or minus signs. The trick here is to use the mod function (%). This function returns the remainder of a division operation. By strategically using the mod function and the concatenation operator (&), you can create a continuous stream of plus and minus signs.
Creating Continuous Plus or Minus Signs
Think of the mod function as a loop. It cycles through a set of numbers, starting again once it reaches the end. By inputting '1+n*' (where n is a number greater than 0), you're asking Desmos to cycle through the numbers, starting from 1.
Now, let's use this to create our continuous plus or minus signs. Type '1+(mod(2n,2)&"-+")'. Here, 'mod(2n,2)' gives us a loop that cycles between 0 and 1, effectively alternating between the plus and minus signs enclosed in quotes.
Modifying the Sequence
To alter the sequence, you can adjust the number enclosed in the mod function (currently 2). For example, inputting '1+(mod(3n,2)&"+-")' will cycle through the signs in the sequence '+', '-', '+', '-', and so on.
You can also vary the loop by changing the number following 'n'. Inputting '1+(mod(2*(n+1),2)&"-+")' will start the sequence at '+', then cycle through '-', '+', '-', etc.
And there you have it! You now know how to display continuous plus or minus signs in Desmos. Don't forget to experiment with different inputs to create unique sign sequences or patterns. Happy graphing!