Skip to main content

Questions tagged [expression-construction]

The tag has no usage guidance.

12 questions with no upvoted or accepted answers
3 votes
0 answers
183 views

Computations with OptimizedExpressions without completely expanding them

I have to manipulate huge expressions that are rational functions of many (∼30) variables with integer coefficients. Storing them just as a ratio of two polynomials would be impractical. But they can ...
Vladimir Reshetnikov's user avatar
2 votes
0 answers
116 views

Store pattern names in variables, and use them in Condition (/;)

I am trying to create patterns whose form is not hard-coded, and which are not explicitly directly written. For that I want to use one list of pattern names to name some parts of a ...
abcd's user avatar
  • 483
2 votes
0 answers
34 views

Setting pieces of "matrices" - unwanted behavior

I am constructing matrices whose elements are lists themselves (of varying length), and am (re)setting the entries of these matrices using among others the "All" command. It seems that in ...
Stijn's user avatar
  • 332
2 votes
0 answers
60 views

How to do an arbitrary expression growth in Mathematica?

I want to write a function that can be used to grow an expression from a seed or another existing expression based on part specification. ...
user13892's user avatar
  • 9,523
1 vote
0 answers
107 views

Is there a good reason why `Slot[]` is not an atomic expression?

Here's a good reason why I think it should be, Map[ If[AtomQ@#, #->"is an atom", #->"not an atom"]& , {"hello",Range@3, # &} , {-1} ] ...
Fortsaint's user avatar
  • 2,060
1 vote
0 answers
108 views

How to send Map[Plus[1, #] &, {1, 2, 3}] to Mathematica from C# via IKernelLink?

Here is a piece of my code ...
Emilio's user avatar
  • 11
1 vote
0 answers
85 views

How Defer[1+Evaluate[1+1] work?

I want to generate some expressions. The expression is not evaluated expect some parts will evaluate first. A simple example is Defer[1+1+1] and in this expression ...
cmc's user avatar
  • 741
1 vote
0 answers
94 views

Some problems with complied function

...
Chen Stats Yu's user avatar
0 votes
2 answers
132 views

Elegant way to validate expression?

Suppose I'm using the expression Person[fn_String, ln_String] as a data expression, and want to prohibit the creation of expressions where ...
Michael Harrison's user avatar
0 votes
0 answers
50 views

How to generate nested expression?

I've found some related questions, but nothing has really helped me to do what I want to do. Given a list of variables L and a parameter ...
TumbiSapichu's user avatar
  • 1,613
0 votes
0 answers
103 views

Generate a system of linear differential equations from a coefficient matrix

I want to generate a system of linear equations that is stable. For that I generated random coefficients and divided the 10 by 10 matrix by the largest eigenvalue and set the diagonal to -1: ...
holistic's user avatar
  • 2,995
0 votes
0 answers
64 views

Determine class of special function from algebraic constraints?

Consider vectors x_i in arbitrary dimension. Let's say I have an expression in six variables F[x_1,x_2,x_3][x_4,x_5,x_6], which ...
Kagaratsch's user avatar