Skip to main content

Questions tagged [upvalues]

1 vote
0 answers
63 views

In memory of my whole night. I encountered this when trying to answer this question by fixing the old Geometry`Polytopes` Legacy Standard Add-On Package. Consider ...
xzczd's user avatar
  • 72.4k
2 votes
0 answers
82 views

Like Identity when passed an argument it returns that argument. Identity[x] gives x Is there a similar symbol or construct <...
MA-'s user avatar
  • 11.5k
5 votes
1 answer
219 views

After some struggling, this is my current minimal working example: ...
MangoIceCream's user avatar
0 votes
0 answers
44 views

I want to define an abstract multilinear function mlfunc in arbitrary arguments with the standard algebraic and analytic properties. Implementing algebraic ...
Po1ynomial's user avatar
0 votes
0 answers
81 views

I would like to intercept certain messages, like the following ...
Tapiocaweasel's user avatar
2 votes
1 answer
114 views

I'm trying to define a non-commutative product with respect to which, certain quantities (e.g. numbers, and some other quantities defined in my code) behave as "scalars" and can be pulled ...
user366202's user avatar
3 votes
1 answer
218 views

I'm trying to learn stuff from pattern matching but I found sometimes pattern matching does not work as I expected. Could anyone explain why the below outputs are not same? Thank you. And could anyone ...
Josh's user avatar
  • 31
3 votes
3 answers
179 views

I'm following this example here; Code Readability and Object-Oriented Code ...
RobertNathaniel's user avatar
4 votes
1 answer
180 views

As this post has discussed, UpValues are certainly useful, and as this post has discussed, g /: f[g[x_]] := h[x] is not ...
user688486's user avatar
1 vote
0 answers
89 views

I am currently working on library that keeps functions in unevaluated form, e.g. In: a = RhoVariable[s] Out: RhoVariable[s] RhoVariable has some definition, namely ...
fqrt's user avatar
  • 94
1 vote
1 answer
90 views

I'm trying to set up a bunch of 2D points using UpSet that I am going to use later for building lines and graphs. ...
joka's user avatar
  • 342
18 votes
1 answer
529 views

f[x] ^= 1; ValueQ[g[x]] returns True in Mathematica 12.2. Is it a bug?
Roma Lee's user avatar
  • 1,126
1 vote
1 answer
119 views

Suppose that we define UpValues for different symbols isSpecialFunction[N1]^=True isSpecialFunction[N2]^=True isSpecialFunction[N3]^=True I would like to make the ...
apt45's user avatar
  • 1,688
5 votes
1 answer
69 views

Let's say I have defined a function zO for the following up-values ...
LeafGlowPath's user avatar
  • 1,483
3 votes
1 answer
156 views

I have defined size to work with discrete size labels: ...
yosimitsu kodanuri's user avatar

15 30 50 per page
1
2 3 4 5 6