Skip to main content

Questions tagged [custom-notation]

This is for questions about creating and using custom notations including the Notation` package. For help on the use of the built-in operators, see syntax.

Filter by
Sorted by
Tagged with
2 votes
1 answer
63 views

Trying to reproduce the behavior of Graph objects with visual representation

I am working on a package dealing with a specific type of object that has a visual representation, so I'm trying to reproduce the behavior of the Graph objects in Mathematica. By that, I mean that ...
Paul Cousin's user avatar
0 votes
0 answers
37 views

How to symbolize code for ladder operators

As suggested in this answer, I am considering symbolizing the function "NonCommutativeMultiplyNew" from the following code: ...
Steven Sagona's user avatar
0 votes
1 answer
79 views

How to define a custom operator/rule to convert $f(t-a) g(x-t-b)$ into $f(t-a) g(x-a-b)$?

I want to define a rule or an operator such that I can have an input like Sin[t-2]Cos[x-5](z-x-t-9)^2 //.someRule to get the output ...
Mohamed Mostafa's user avatar
0 votes
1 answer
111 views

Seeking advice to convert TraditionalForm generator into Notation paclet form

My Medical Researchers very much prefer me to use TraditionalForm for symbols and algorithms. However, using TraditionalForm on left hand side of an assignment will introduce run-time headaches if I ...
A Chase Turner's user avatar
1 vote
1 answer
91 views

Functions involving variables that have been "Symbolized"

I used the Notation package to symbolize expressions of the form Superscript[u,_]. I then proceeded to manually input the values ...
Julio Cáceres's user avatar
1 vote
0 answers
100 views

CaputoD as Caputo Fractional Derivative [closed]

I hope everyone is doing well. I have a question about mathematica that I have attached here. If you look into the attached picture, then you can see the Derivative of unknown function f[t] in ...
Muhammad Aamir Ali 's user avatar
0 votes
0 answers
106 views

Plug in values in symbolic expressions

With the help of answers on this post: new rule for noncommutative multiplication, defined new noncommutative multiplication: ...
skipi's user avatar
  • 45
2 votes
1 answer
233 views

Can you use superscripts as variable and function names?

I want to express the following function: $z^{(1)}=w^{(1)}a^{(0)}+b^{(1)}$ I have read in Mathematica documentation that Symbolize can be used to define variables ...
M.E.'s user avatar
  • 333
4 votes
0 answers
122 views

How to make a package of notations using the notation package

Alternative question: how to postfixify prefix operators like @, /@, @@ I would like to make a package of notations using the notation package. I want to make postfix notations for common prefix ...
userrandrand's user avatar
  • 5,947
0 votes
0 answers
40 views

Notation package problem [duplicate]

I am using Mathematica 12.3.1 on Windows 10. I am trying to load the Notation package: Needs["Notation`"] and I get the following: It seems the package ...
geom's user avatar
  • 678
2 votes
1 answer
220 views

Define a new rule for multiplication

I am trying to implement a new rule for noncommutative multiplication: $$ x * q^n * y \to q^n * x * y, $$ where $\ast$ stands for noncommutative multiplication and x and y are random products in ...
skipi's user avatar
  • 45
2 votes
1 answer
103 views

Composition of functions not working [closed]

I am trying to set a function within a function. What I do is to first create a function with two arguments. Then I would like to set a new function with the same two arguments, in which the previous ...
Rubén Pérez Sanz's user avatar
2 votes
2 answers
118 views

How to use StandardForm/DisplayForm with custom symbols

I want to be able to make custom notation similar to how Complex[1,2] is displayed as 1 + 2 i. I tried the following ...
AccidentalTaylorExpansion's user avatar
4 votes
2 answers
266 views

Defining new brackets

I would like to wrap double-struck brackets around variables for notation purposes only. For instance [[X]] should display as the first image below. However, these ...
Bertram's user avatar
  • 83
1 vote
1 answer
502 views

How to express number in exponential decimal such as 1e2=100?

I am using MATLAB for a long time, and usually I express the number as exponential decimal such as x = 1e2; % x=100 However, if I write this form in mathematica, ...
Juno's user avatar
  • 13
1 vote
0 answers
134 views

How to run a Mathematica package (.m) (which depends on Notation` package) via Python using "Wolfram Client Library for Python"?

In How to run a Mathematica package (.m) from Python using the “Wolfram Client Library for Python”?, I was able to get the basicPackage` example to work, but ran ...
Sterling's user avatar
  • 553
7 votes
2 answers
342 views

<<Notation` raises warnings

In a completely fresh kernel (after Quit[]ing), when I do <<Notation` I am met with ...
evanb's user avatar
  • 6,311
1 vote
2 answers
83 views

Notation parse rule does parse when it acts as a argument

https://reference.wolfram.com/language/Notation/tutorial/NotationSymbolizeAndInfixNotation.html Notation[boxes ⟹ expr] set boxes to be parsed to expr I want a simplified notation for entering a ...
eason's user avatar
  • 197
8 votes
0 answers
250 views

How would one add Hyperreals as a new type to Mathematica?

Hyperreals are an extension to the real numbers; they formalise the concepts of infinities and infinitestimals as numbers, rather than the named limit points outside of the system of reals and form ...
Julian Moore's user avatar
  • 2,560
0 votes
0 answers
78 views

How to write $I$ and $I_0$ as a symbol?

How could we write both $I$ and $I_0$ as a symbol in Wolfram Mathematica? I consider $I$ as a variable and $I_0$ as a parameter in my system of equations ($Y=C_0 + I, I=I_0+bY$, Y and I are endogenous ...
Math_BD's user avatar
2 votes
0 answers
46 views

How do I introduce new input tokens to Mathematica (so that they can be recognized by InputAutoReplacements)?

I'm trying to introduce automatic replacements by modifying my notebook's value of InputAutoReplacements (e.g. via ...
thorimur's user avatar
  • 9,030
3 votes
1 answer
248 views

Symbolized, Subscripted Variable Doesn't Look Pretty

Background I'm trying to programmatically generate a subscripted variable in a way that makes it appear "pretty". Here is a minimal working example that shows some strange behavior I'm ...
Sterling's user avatar
  • 553
0 votes
1 answer
321 views

Subscripts use to make expression readable [duplicate]

I am trying to write a function in mathematica which depends on different parameters. For example $$f(x_1, x_2, x_3, x_4, x_5)= 2x_1+\sin(x_2)+x_3*x_4-x_5^{-1}$$ (My actual function has 12 such ...
CouchPotato's user avatar
2 votes
0 answers
92 views

Define an operator with the distributive property that works in general expressions

This is a follow up to this question. In that question they use TagSetDelayed to give a symbol the distributive property. In my case this becomes ...
AccidentalTaylorExpansion's user avatar
0 votes
2 answers
146 views

Function to change derivative notation

I would like to write a function to change the notation of derivative in an expression. For instance, the function rep will take ...
Bran's user avatar
  • 275
2 votes
0 answers
74 views

Why does Parenthesize add parentheses here?

I've been playing around with the Notation` package and box forms for some custom notation recently. I discovered a nifty function named ...
Tanner Legvold's user avatar
1 vote
2 answers
125 views

Is there any way to define the Pauli matrices eigenstates symbolically in Mathematica?

I've been trying to define the kets $|+\rangle$ and $|-\rangle$ with no sucess with ...
Gaba's user avatar
  • 11
1 vote
2 answers
798 views

Semi-direct product and crossed product symbols

Does Mathematica have any symbols for the semi-direct product $\rtimes$ (or $\ltimes$) and the crossed product $\bowtie$? I have looked at the lists containing all symbols and couldn't find it there. ...
Gert's user avatar
  • 1,620
2 votes
2 answers
156 views

How to improve this custom notation?

I implemented this custom notation... ...
nilo de roock's user avatar
4 votes
1 answer
142 views

Output of `Subsuperscript` in TeXForm?

TeXForm can be used to convert Mathematica expressions directly to LaTeX. However, this function fails on an expression that has a sub- and a super-script: ...
Kagaratsch's user avatar
  • 12.1k
2 votes
1 answer
151 views

Making ^ work as MatrixPower for matrices

I'd like my expressions like A^d get interpreted as MatrixPower[A, d] for matrix arguments A, any suggestions how to do this?
Yaroslav Bulatov's user avatar
2 votes
2 answers
231 views

InterpretationBox problem with symbolic expressions

Related to this question, Why does this InterpretationBox construct work when x, y are ...
alancalvitti's user avatar
  • 15.2k
6 votes
1 answer
2k views

Best way to write an equation with subscripts and superscripts

This post is not about a specific Mathematica problem but about to develop the best way to enter mathematical equations with subscripts and superscripts. I have a ...
Tugrul Temel's user avatar
  • 6,263
7 votes
4 answers
217 views

Seeking more verbose syntax, e.g. "Then" -> "," [duplicate]

(NB Related question asks about such things without using the notation package... I would be quite happy with any answer, including the use of Notation) With long, complex expressions I find the ...
Julian Moore's user avatar
  • 2,560
1 vote
1 answer
62 views

Setting Editable and Selectable False within Notation

Using the Notation package, I have a custom notation defined for chemical reactions. A minimal example is below (I will explain the commented-out part in a moment): ...
Kevin Ausman's user avatar
  • 2,307
4 votes
2 answers
170 views

ActionMenu with blank entries until mouseover

Note: The code below requires version 12.0. Problem Overview: I am having some strange behavior with an ActionMenu, where the items in the menu don't show up until the mouse passes over them, as ...
Kevin Ausman's user avatar
  • 2,307
0 votes
1 answer
205 views

Sequential subscripts etc. in a unified notation

I am trying to generate a notation system to handle a variety of things in chemistry-standard notation. One key aspect of this is to be able to define symbols that have multiple subscripts, ...
Kevin Ausman's user avatar
  • 2,307
11 votes
4 answers
393 views

How can I automatically replace [[ and ]] with the \[LeftDoubleBracket] and \[RightDoubleBracket] operators?

When you type ->, it is automatically turned into the \[Rule] character. Can we configure our frontends to do the same for ...
Carl Lange's user avatar
  • 13.2k
0 votes
1 answer
89 views

Notation package: StringMemberQ in conditional notation definition

Suppose that I have a list, allSpecies, that contain a set of symbols, each of which has been assigned a new notation using Notation[...]. As an example, the internal representation is C60s, and the ...
Kevin Ausman's user avatar
  • 2,307
2 votes
1 answer
113 views

Operator Precedence in Notation Package

I am trying to use the Notation package to define custom notation for chemical reactions. The natural thing to do is to use a \[LongRightArrow] for the operator....
Kevin Ausman's user avatar
  • 2,307
0 votes
3 answers
2k views

Subscripted variables with changing subscript

When I want to sum over indexed variables, indices being subscripts, the result works as expected, however, upon loading the Notation package, it doesn't. See below As one might have expected from ...
Patrick.B's user avatar
  • 1,533
4 votes
1 answer
716 views

Variables with both super-subscripts on the same vertical axis [closed]

When writing out a variable with both a subscript and a superscript, such as: Subscript[Superscript[f, a], b] one has that the "b" letter is "pushed" to the ...
Patrick.B's user avatar
  • 1,533
2 votes
1 answer
362 views

Notation package with Traditional Form

I symbolize subscripted variables with the form TraditionalForm, to enable easy use of TeXForm as suggested here: ...
Patrick.B's user avatar
  • 1,533
6 votes
1 answer
145 views

DumpSave and Notation package

I tried to follow the answer in How to save/load (export/import) symbolized variables?. In my case, I would add the code: ...
Patrick.B's user avatar
  • 1,533
2 votes
1 answer
116 views

Using OverBarred variables

Mathematica does not seem to treat variables as a unit. Consider the following: rule = a -> Function[{x}, OverBar[a][x]] test = a[x] /. rule; test /. rule It ...
Patrick.B's user avatar
  • 1,533
1 vote
1 answer
155 views

Function definition with sub (super) cripted variables [duplicate]

I like using subscripts a lot. However, it is regrettably not possible to do, for example: myfunction[Subscript[x,1]_] := Subscript[x,1] +1 where instead of the ...
Patrick.B's user avatar
  • 1,533
6 votes
2 answers
368 views

Mathematica ExtraPackage

Where can I install the Wolfram ExtraPackages? Especially the "Notation`" package? I do not seem to have it by default (In the Utilities, I have only two documents, ...
Patrick.B's user avatar
  • 1,533
6 votes
2 answers
313 views

How to build a TemplateBox with dynamic length GridBox?

I have created the following TemplateBox Rule. ...
user13892's user avatar
  • 9,651
3 votes
1 answer
112 views

How to remove InputAlias created using notations package

If i create a custom input alias using Notation package's AddInputAlias. Now it appears in the list generated by ...
user13892's user avatar
  • 9,651
0 votes
0 answers
53 views

Define a new Front End Syntax for Function Argument Checking & Debugging

In this question I asked a basic question about how to check argument types such that there was useful output from the front end when calling functions. Based on elements of the nice answer by @j-m-is-...
Julian Moore's user avatar
  • 2,560