Logical operators perform logical operations: AND, OR and NOT. <= evaluates to true if the left operand is less than or equal to the right operand. < evaluates to true if the left operand is less than the right operand.Įxample 8: Less than or Equal to Operator const a = 2 >= evaluates to true if the left operand is greater than or equal to the right operand.Įxample 7: Less than Operator const a = 3, b = 2 > evaluates to true if the left operand is greater than the right operand.Įxample 6: Greater than or Equal to Operator const a = 3 It's because their types are different even though they have the same value.Įxample 5: Greater than Operator const a = 3 In the above example, 2 != '2' gives true. It's the complete opposite of strictly equal =. != evaluates to true if the operands are strictly not equal. = evaluates to true if the operands are equal, however, = evaluates to true only if the operands are equal and of the same typeĮxample 4: Strict Not Equal to Operator const a = 2, b = 'hello' And = also checks for the data type while comparing. Here 2 and '2' are the same numbers but the data type is different. = evaluates to true if the operands are equal and of the same type. != evaluates to true if the operands are not equal.Įxample 3: Strict Equal to Operator const a = 2 If you mistakenly use = instead of =, you might get unwanted result.Įxample 2: Not Equal to Operator const a = 3, b = 'hello' Note: In JavaScript, = is a comparison operator, whereas = is an assignment operator. = evaluates to true if the operands are equal. Less than or equal to: true if the left operand is less than or equal to the right operandĮxample 1: Equal to Operator const a = 5, b = 2, c = 'hello' Less than: true if the left operand is less than the right operand Greater than or equal to: true if the left operand is greater than or equal to the right operand Greater than: true if the left operand is greater than the right operand Strict not equal to: true if the operands are equal but of different type or not equal at all Strict equal to: true if the operands are equal and of the same type There are packages that can be used, but more often using a carat and the \circ symbol.Not equal to: true if the operands are not equal.Upper case, such as upper case beta: \Beta.Lower case, such as lower case theta: \theta.Us \ln to typeset the natural log function.Īdditional symbols and commands for trigonometry Greek letters:.To write log base 7 of 5, we would write: Use an underscore to denote a different base. If you simply type log, this will be read as the variables l, o, and then g. Use \log to typeset the log function as a function.$\sqrt$ Special characters:Īdditional symbols and commands for college algebra Logarithms and exponential functions: We simply write:Ĭommands require one or more arguments after them, enclosed in curly braces. Symbols are standalone, and do not require an argument. Note: If you use these commands inside an equation editor (either the MathType editor itself or one in D2L), you do not need to use dollar signs. The equations can still be edited in the same way and converted back to MathType. But don’t panic, it will change “align” to “array” and be followed by a stated number of columns. Note: If you turn this into MathType and then back into LaTeX, it might turn it into an array environment, which requires a stated number of columns. If we wanted to show the steps to solving 5x plus 3 equals 13, we would type: Use double backslash (\\) to create a new line. Use the ampersand symbol to align each line. The Toggle Tex feature requires that this is itself placed inside dollar signs. To type a multiline expression in LaTeX, enclose it in an align environment. Without them, whatever you write is read as regular text. The dollar signs are key, as they distinguish a LaTeX math expression from regular text. For example, if we want to type 5x plus 3, we would type: To type a single line expression in LaTeX, enclose it in dollar signs. The commands are grouped by a general set of commands relevant to all courses. The list is not exhaustive, but covers most commands that a student would need for 100- and 200-level mathematics courses. Most of them can also be used in the learning management system D2L. This document focuses exclusively on LaTeX commands that can be used in Microsoft Word (with the Toggle TeX feature). PCC / Instructional Support / Creating Accessible Content / Math
0 Comments
Leave a Reply. |