Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode Math: e.g.: ÷ × ∙ ⨉ √ ∛ ∜ ∑ ∏ ∧ ∨ ∂ ∆ ∫ ≤ ≥ ≠ ≝ #249

Closed
mariuszgromada opened this issue Feb 12, 2022 · 5 comments

Comments

@mariuszgromada
Copy link
Owner

http://xahlee.info/comp/unicode_math_operators.html

@mariuszgromada
Copy link
Owner Author

mariuszgromada commented Feb 26, 2022

  • "α" = "\u03b1": can be used as var name
  • "β" = "\u03b2": can be used as var name
  • "γ" = "\u03b3": can be used as var name
  • "δ" = "\u03b4": can be used as var name
  • "ε" = "\u03b5": can be used as var name
  • "ζ" = "\u03b6": can be used as var name
  • "η" = "\u03b7": can be used as var name
  • "θ" = "\u03b8": can be used as var name
  • "ι" = "\u03b9": can be used as var name
  • "κ" = "\u03ba": can be used as var name
  • "λ" = "\u03bb": can be used as var name
  • "μ" = "\u03bc": can be used as var name
  • "ν" = "\u03bd": can be used as var name
  • "ξ" = "\u03be": can be used as var name
  • "ο" = "\u03bf": can be used as var name
  • "π" = "\u03c0": pi constant
  • "ρ" = "\u03c1": can be used as var name
  • "ς" = "\u03c2": can be used as var name
  • "σ" = "\u03c3": can be used as var name
  • "τ" = "\u03c4": can be used as var name
  • "υ" = "\u03c5": can be used as var name
  • "φ" = "\u03c6": can be used as var name
  • "χ" = "\u03c7": can be used as var name
  • "ψ" = "\u03c8": can be used as var name
  • "ω" = "\u03c9": can be used as var name
  • "Α" = "\u0391": can be used as var name
  • "Β" = "\u0392": can be used as var name
  • "Γ" = "\u0393": can be used as var name
  • "Δ" = "\u0394": Forward difference operator
  • "Ε" = "\u0395": can be used as var name
  • "Ζ" = "\u0396": can be used as var name
  • "Η" = "\u0397": can be used as var name
  • "Θ" = "\u0398": can be used as var name
  • "Ι" = "\u0399": can be used as var name
  • "Κ" = "\u039a": can be used as var name
  • "Λ" = "\u039b": can be used as var name
  • "Μ" = "\u039c": can be used as var name
  • "Ν" = "\u039d": can be used as var name
  • "Ξ" = "\u039e": can be used as var name
  • "Ο" = "\u039f": can be used as var name
  • "Π" = "\u03a0": Product operator - PI
  • "Ρ" = "\u03a1": can be used as var name
  • "Σ" = "\u03a3": Summation operator - SIGMA
  • "Τ" = "\u03a4": can be used as var name
  • "Υ" = "\u03a5": can be used as var name
  • "Φ" = "\u03a6": can be used as var name
  • "Χ" = "\u03a7": can be used as var name
  • "Ψ" = "\u03a8": can be used as var name
  • "Ω" = "\u03a9": can be used as var name
  • "∑" = "\u2211": Summation operator - SIGMA
  • "∏" = "\u220f": Product operator - PI
  • "ℿ" = "\u213f": Product operator - PI
  • "∆" = "\u2206": Forward difference operator
  • "∇" = "\u2207": Backward difference operator
  • "∫" = "\u222b": Definite integral operator
  • "ℼ" = "\u213c": pi constant
  • "ℇ" = "\u2107": can be used as var name
  • "ⅇ" = "\u2147": Napier's constant, or Euler's number, base of Natural logarithm
  • "ℯ" = "\u212f": Napier's constant, or Euler's number, base of Natural logarithm
  • "∜" = "\u221c": Fourth root function represented as unary left operator
  • "∛" = "\u221b": Cube root function represented as unary left operator
  • "√" = "\u221a": Square root function represented as unary left operator
  • "∂" = "\u2202": Derivative operator
  • "⊻" = "\u22bb": Exclusive or (XOR)
  • "⊽" = "\u22bd": Logical NOR
  • "⊼" = "\u22bc": NAND - Sheffer stroke
  • "⇔" = "\u21d4": Logical biconditional (EQV)
  • "⇍" = "\u21cd": Converse nonimplication (CNIMP)
  • "⇏" = "\u21cf": Material nonimplication (NIMP)
  • "⇐" = "\u21d0": Converse implication (CIMP)
  • "⇒" = "\u21d2": Implication (IMP)
  • "¬" = "\u00ac": Negation
  • "∧" = "\u2227": And
  • "∨" = "\u2228": Or
  • "⋝" = "\u22dd": Greater or equal
  • "≥" = "\u2265": Greater or equal
  • "⋜" = "\u22dc": Lower or equal
  • "≤" = "\u2264": Lower or equal
  • "≠" = "\u2260": Inequation
  • "÷" = "\u00f7": Division
  • "∙" = "\u2219": Multiplication
  • "⨉" = "\u2a09": Multiplication
  • "×" = "\u00d7": Multiplication

@mariuszgromada mariuszgromada changed the title ÷ × ∙ ⨉ √ ∛ ∜ ∑ ∏ ∧ ∨ ∂ ∆ ∫ ≤ ≥ ≠ ≝ Unicode Math: e.g.: ÷ × ∙ ⨉ √ ∛ ∜ ∑ ∏ ∧ ∨ ∂ ∆ ∫ ≤ ≥ ≠ ≝ Mar 11, 2022
@mariuszgromada
Copy link
Owner Author

Examples:

  • √16 = 4
  • √√16 = 2
  • ∑(i, 1, 10, i×i) = sum(i, 1, 10, i*i)

@mariuszgromada
Copy link
Owner Author

List of added symbols mXparser.consolePrintHelp("5.0")

    #  key word            type                    syntax                                        since description
    -  --------            ----                    ------                                        ----- -----------
    5. ×                   <Operator>              a × b                                         5.0   Multiplication
    6. ⨉                   <Operator>              a ⨉ b                                         5.0   Multiplication
    7. ∙                   <Operator>              a ∙ b                                         5.0   Multiplication
    9. ÷                   <Operator>              a ÷ b                                         5.0   Division
   15. √                   <Operator>              √a                                            5.0   Square root function represented as unary left operator
   16. ∛                   <Operator>              ∛a                                            5.0   Cube root function represented as unary left operator
   17. ∜                   <Operator>              ∜a                                            5.0   Fourth root function represented as unary left operator
   19. ∧                   <Boolean Operator>      p ∧ q                                         5.0   Logical conjunction (AND)
   22. ⊼                   <Boolean Operator>      p ⊼ q                                         5.0   NAND - Sheffer stroke
   24. ~∧                  <Boolean Operator>      p ~∧ q                                        5.0   NAND - Sheffer stroke
   25. ¬&                  <Boolean Operator>      p ¬& q                                        5.0   NAND - Sheffer stroke
   26. ¬∧                  <Boolean Operator>      p ¬∧ q                                        5.0   NAND - Sheffer stroke
   29. ¬&&                 <Boolean Operator>      p ¬&& q                                       5.0   NAND - Sheffer stroke
   30. ¬/\                 <Boolean Operator>      p ¬/\ q                                       5.0   NAND - Sheffer stroke
   32. ∨                   <Boolean Operator>      p ∨ q                                         5.0   Logical disjunction (OR)
   35. ⊽                   <Boolean Operator>      p ⊽ q                                         5.0   Logical NOR
   37. ~∨                  <Boolean Operator>      p ~∨ q                                        5.0   Logical NOR
   38. ¬|                  <Boolean Operator>      p ¬| q                                        5.0   Logical NOR
   39. ¬∨                  <Boolean Operator>      p ¬∨ q                                        5.0   Logical NOR
   42. ¬||                 <Boolean Operator>      p ¬|| q                                       5.0   Logical NOR
   43. ¬\/                 <Boolean Operator>      p ¬\/ q                                       5.0   Logical NOR
   44. ⊻                   <Boolean Operator>      p ⊻ q                                         5.0   Exclusive or (XOR)
   46. ⇒                   <Boolean Operator>      p ⇒ q                                         5.0   Implication (IMP)
   48. ⇐                   <Boolean Operator>      p ⇐ q                                         5.0   Converse implication (CIMP)
   50. ⇏                   <Boolean Operator>      p ⇏ q                                         5.0   Material nonimplication (NIMP)
   52. ⇍                   <Boolean Operator>      p ⇍ q                                         5.0   Converse nonimplication (CNIMP)
   54. ⇔                   <Boolean Operator>      p ⇔ q                                         5.0   Logical biconditional (EQV)
   57. ¬                   <Boolean Operator>      ¬p                                            5.0   Negation
   60. ≠                   <Binary Relation>       a ≠ b                                         5.0   Inequation
   66. ≤                   <Binary Relation>       a ≤ b                                         5.0   Lower or equal
   67. ⋜                   <Binary Relation>       a ⋝ b                                         5.0   Lower or equal
   69. ≥                   <Binary Relation>       a ≥ b                                         5.0   Greater or equal
   70. ⋝                   <Binary Relation>       a ⋝ b                                         5.0   Greater or equal
  242. ∑                   <Calculus Operator>     ∑( i, from, to, expr , <by> )                 5.0   Summation operator - SIGMA
  243. Σ                   <Calculus Operator>     Σ( i, from, to, expr , <by> )                 5.0   Summation operator - SIGMA
  245. ∏                   <Calculus Operator>     ∏( i, from, to, expr , <by> )                 5.0   Product operator - PI
  246. ℿ                   <Calculus Operator>     ℿ( i, from, to, expr , <by> )                 5.0   Product operator - PI
  247. Π                   <Calculus Operator>     Π( i, from, to, expr , <by> )                 5.0   Product operator - PI
  249. ∫                   <Calculus Operator>     ∫( expr, arg, from, to )                      5.0   Definite integral operator
  251. ∂                   <Calculus Operator>     ∂( expr, arg, <point> )                       5.0   Derivative operator
  253. ∂-                  <Calculus Operator>     ∂-( expr, arg, <point> )                      5.0   Left derivative operator
  255. ∂+                  <Calculus Operator>     ∂+( expr, arg, <point> )                      5.0   Right derivative operator
  258. ∆                   <Calculus Operator>     ∆( expr, arg, <delta> )                       5.0   Forward difference operator
  259. Δ                   <Calculus Operator>     Δ( expr, arg, <delta> )                       5.0   Forward difference operator
  261. ∇                   <Calculus Operator>     ∇( expr, arg, <delta> )                       5.0   Backward difference operator
  269. π                   <Constant Value>        π                                             5.0   Pi, Archimedes' constant or Ludolph's number
  270. ℼ                   <Constant Value>        ℼ                                             5.0   Pi, Archimedes' constant or Ludolph's number
  273. ℯ                   <Constant Value>        ℯ                                             5.0   Napier's constant, or Euler's number, base of Natural logarithm
  274. ⅇ                   <Constant Value>        ⅇ                                             5.0   Napier's constant, or Euler's number, base of Natural logarithm

mariuszgromada added a commit that referenced this issue Mar 12, 2022
@mariuszgromada
Copy link
Owner Author

Done

mariuszgromada added a commit that referenced this issue Mar 13, 2022
mariuszgromada added a commit that referenced this issue Mar 20, 2022
@mariuszgromada
Copy link
Owner Author

Global Mode on / off

  • mXparser.enableUnicodeBuiltinKeyWordsMode()
  • mXparser.disableUnicodeBuiltinKeyWordsMode()
  • mXparser.checkIfUnicodeBuiltinKeyWordsMode()

Global settings can be overwritten by local (expression level) settings - Expression e:

  • e.enableUnicodeBuiltinKeyWordsMode()
  • e.disableUnicodeBuiltinKeyWordsMode()
  • e.checkIfUnicodeBuiltinKeyWordsMode()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant