Questions tagged [built-in-symbols]

Questions related to handling built-in symbols and functions, for example why they behave a certain (possibly unexpected) way.

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

How &@ and &/@works?

I have the following expression: (Join[#, Reverse[#, {2}]] &@Partition[#, 2, 1, 1]) & /@ Vec (* where: *) Vec={{2,0},{1,1},{0,2}}, but I am not sure how ...
2
votes
3answers
351 views

Compare all elements of a set with a specific number and return 1 or 0

Say I generate a set of 20 random numbers by x=RandomReal[{0, 1}, 20], I want to compare every element of x with 0.4. If it is less than or equal to 0.4, then return 1; if it is greater than 0.4, then ...
0
votes
0answers
48 views

Avoiding Tables, Do and other loop construction

In my work I have a lot of cases, where I should calculate non-listable functions for a quite large number of points. To be more concrete, consider first listable function ...
1
vote
0answers
68 views

How to figure out syntax for symbols?

I'm new to Mathematica and am having a hard time figuring out how to type certain symbols when I read the documentation. For example, in https://reference.wolfram.com/language/ref/...
15
votes
3answers
936 views

Which function names have been re-purposed in Mathematica after being deprecated?

I have just learned about the new function Splice from this answer. It turns out that this function used to have a completely different usage! (See below.) To me, ...
11
votes
1answer
456 views

Finding year that MMA functions were introduced via programmatic calls in the Wolfram Language [duplicate]

Is there a way to find the year that MMA functions were introduced via programmatic calls in the Wolfram Language? I would like to be able to create and manipulate such a list or dataset.
3
votes
0answers
39 views

What built-in functions have bad time/space complexity and their alternatives?

It's surprising that Join is $\mathcal{O}(n)$ (due to copy) while I've been using it as a convenient way to join lists together. It also reminds me of suggestions ...
3
votes
1answer
79 views

How can I prevent TabView from resetting the current tab?

This is a simplification of a problem that has arisen in a project regarding Euclidean activities for verifying proportions via operations on pairs of magnitudes. In the project, the LocatorPane is ...
5
votes
2answers
89 views

Customized priority function in DataStructure[“PriorityQueue”]?

I'm using Mathematica 12.1. The documentation for DataStructure["PriorityQueue"] claims that, ... the highest-priority element is always returned. The ...
1
vote
1answer
46 views

Define trace-like function (e.g. cyclically invariant) involving operators without built-in meaning

I am interested in defining a function, say $\mathrm{Tra}$, that imply operators without build-in meaning, say it involves products with the $\cdot$ (Esc . Esc), ...
3
votes
2answers
54 views

Define the behavior of operators without built-in meaning

I need an operation $\tilde{}$ that lifts another operation (for example, the sum, but this does not have to be limited to real numbers) in the sense that $\widetilde{ (x \oplus y)} = \tilde x + \...
0
votes
1answer
24 views

What is the general behavior of the “enter” character, and why does the specific behavior differ in these four situations?

I am trying to understand the exact behavior of the "enter" character in Mathematica. (I am not even sure what to call it: perhaps it is really the carriage return or newline character, which is input ...
2
votes
1answer
95 views

How to get information from all built-in Mathematica functions in order to create a Kotlin library like the Wolfram Client Library for Python?

I'd like to use (if this already exists) or create a library to use Mathematica together with Kotlin (or Java) (not JLink, please see below). We already have this very useful implementation for ...
3
votes
0answers
74 views

PowerModList anomaly

This post is related to Not comprehending PowerMod. Here the issue is that PowerModList, in v. 12.1 finds no cube roots of 1 Mod 10^60 - 1: ...
2
votes
0answers
55 views

Who Defines Symbol \$MySource

When I start up a fresh executing Mathematica on my MacOS system and I open a Notebook file there is always one symbol defined in the Global context. This symbol is \$MySource and it points (via a ...
13
votes
2answers
578 views

Looping through all functions defined in Mathematica

Is there a way to loop through all the Functions (Elementary and Special functions) that exist in Mathematica? I want to construct a table of some identities and maybe I can discover something ...
2
votes
0answers
54 views

How to override a built-in Mathematica function using its old version?

How can we override a Mathematica built-in function using itself in the definition? For example, the DiracDelta function is not defined for complex numbers like: <...
2
votes
0answers
41 views

How to Return All Mathematica Functions in a Domain

We know that Names["System*"] and WolframLanguageData[] both return the list of all System or "native" functions. Is there a ...
6
votes
1answer
83 views

What is the meaning of “Introduced in …” and “Updated in …”?

I am looking at the documentation of a Mathematica function and at the bottom it says Introduced in 1988 (1.0) | Updated in 1996 (3.0). What exactly does this ...
2
votes
1answer
57 views

About AbsoluteCorrelation

In my understanding, "the absolute correlation" is not such a common expression. Can anyone kindly explain the significance of the built-in symbol ...
1
vote
0answers
48 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. ...
0
votes
0answers
35 views

After execution of simple list manipulation every expression turns dark blue and nothing is defined - how to debug

This question is related to this one in the sense that it uses the code from there. What happens is best illustrated in the video here. When I run (* part 1 *) ...
4
votes
1answer
386 views

Wrap angle to [0,2pi[

Is there any built-in Mathematica function that wraps any angle in rad to the $[0,2\pi]$ domain? So, for example: wrapTo2pi[9Pi/4]=Pi/4 I know such function ...
2
votes
0answers
32 views

Pattern matching and NonCommutativeMultiply

I am trying to define some functions using NonCommutativeMultiply and I am experiencing some strange behavior. Consider the following expression ...
0
votes
0answers
68 views
2
votes
0answers
76 views

Error Message for GrammarRules and GrammarApply

I have been struggling with the following issue regarding an irregularity when deploying and applying GrammarRules. Specifically, it often takes several failed attempts before the execution is ...
3
votes
1answer
58 views

How to get the bit size (bit length) of an integer? [closed]

Suppose I have the integer 255, so 11111111 is its base 2 (bit) representation and the bit size of 255 is 8. How can I calculate the bit size of a (big) integer in Mathematica? Is there a built in ...
6
votes
2answers
121 views

Operators without built-in meaning are incompatible with parallel evaluation

Mathematica has a useful set of Operators Without Built-In Meanings. For example: CenterDot, CircleDot, ...
0
votes
0answers
80 views

How does Wolfram Language implement for enabling symbols to receive various forms of parameters? [duplicate]

How does the official implement a list/tuple of parameters that can be different in type and quantity as a whole? After re-read @Szabolcs's and @MichaelE2's comments. Finally, I accepted the ...
1
vote
3answers
116 views

Why do atomic objects like 56 have a head if they're supposed to be, well, atomic?

This question follows from this one I made earlier. If you ask for FullForm[4] you will get back 4, and that's fine. ...
3
votes
2answers
131 views

What's the difference between 56 and Integer[56]? [duplicate]

I'm trying to grasp how to Wolfram Language uses symbolic expressions for everything. The concept of doing so makes sense to me, but the language doesn't behave how I predict. I understand how ...
2
votes
1answer
137 views

Automated (lazy) method to make custom (key-input) shortcuts (not menu items) for letter-like symbols? [duplicate]

The Problem: I don't know about you, but every time I am trying to do analytical work in Mma, it is rather difficult/cumbersome for me to type the following, here specifically for ...
0
votes
1answer
66 views

Symbolic Resultant Too Slow/Keeps Running

Evalutation of the following cell, which includes the symbolic resultant, of two univariate polynomials in $x$, with parameters $a,b,c$ for the first polynomial (of degree 4) and parameters $d,e,f,g$ ...
1
vote
1answer
71 views

JoinAcross with multiple associations

I would like to use JoinAcross to combine several lists of associations. Extending an example from the documentation, I'd like to do this: ...
0
votes
1answer
36 views

Apply Expand only to parts of expression

I have the following term: term = (x AngleBracket[x (-x+Sum[v'[y[j]],j])])/AngleBracket[x^2]+Sum[v'[y[j]],j]; term //TeXForm $\frac{x \left\langle x \left(\sum ...
5
votes
2answers
428 views

Underflow error General::munfl from E^x instead of Exp[x]

In contrast to earlier versions, Mathematica 11.3 and 12.0 generate lots of underflow errors from my code, e.g. ...
2
votes
1answer
139 views

How I can get glyphs from a fraktur font and use them as identifiers?

I would like to use the fraktur-S ($\LaTeX$: \mathfrak{S} $\mathfrak{S}$; Unicode: "U+1D516" 𝔖) as a variable name in Mathematica, but pasting the Unicode ...
2
votes
2answers
92 views

Replacing with pattern on built-in symbols?

I have: f[a, b] /. f[x__] -> g[x, 0] // InputForm (* Out: g[a, b, 0] *) Which is what I expect, but when I use a built in symbol instead of ...
5
votes
1answer
98 views

How to reset a built-in symbol to its default definition?

I'm trying to add functionality to some of Mathematica's built-in functions in a package I'm building. I'm not trying to overwrite any functionality—just add it where it isn't already defined. I ...
4
votes
2answers
118 views

DisplayForm problem with $\pi$ in FractionBox

The following line produces an output with the text "Pi" displayed instead of the symbol (greek letter) $\pi$. Code line: FractionBox[π,2] // DisplayForm ...
10
votes
1answer
248 views

Who or what is named character Andy?

I suspect \[Andy] was meant to represent a staff member, or at least a person of importance. I tried the F1-"Wolfram Search", Wolfram|Alpha and a simple ...
10
votes
1answer
144 views

Why does Success[…][key] work and Failure[…][key] doesn't work?

I'm trying to figure out what is a quick way to add error reporting to my user defined functions. I was experimenting with Success and ...
3
votes
2answers
321 views

How to find the list of all the elementary functions in mathematica?

Is there any command to give me the list of all the embedded elementary functions in Mathematica like Cos Sin Cosh Sinh Log and so on?
3
votes
1answer
55 views

Is using Length more efficient than using === as stopping criterion?

I am using NestWhileList[ f[#, elems]&, pairs, Length[#1]<Length[#2]&, 2, Infinity, -1 ] to generate all suitable subsets from ...
0
votes
0answers
107 views

Create library of custom functions [duplicate]

I have been trying to create a library of custom functions that I could just call at the start of every notebook. For instance, say I want the following functions to be part of the Library, or even ...
6
votes
0answers
137 views

Not comprehending PowerMod

Bug introduced in 10.3 or earlier and persisting through 11.3.0 or later The bug is not present in 10.0. By definition, PowerMod[a, 1/r, m] finds a modular rth root of a mod m. Here's a pair of ...
1
vote
2answers
75 views

CountryData and RailwayGaugeLengths

Looking to see how to extract out just the length for this search: ...
1
vote
1answer
40 views

From algebraic symbols to symbolic functions

i have a code which gives an output of this kind: rrr=2*f+1; Now i define a simple function: f[x_]:=3*x+2; How should i do ...
0
votes
0answers
45 views

How can I simplify expressions correctly?

the final output of my code gives this expression which i call ttt: ...
1
vote
1answer
81 views

Substitution of expressions for the output

I have a code which gives this kind of output : W = Sum[v[j]*b[j], {j, 1, 3}]; AA = (v[1]*b[1] + v[2]*b[2] + v[3]*b[3])*2 + 3 ; I know that if i want to ...