Questions tagged [expression-construction]
The expression-construction tag has no summary.
107 questions
1 vote
2 answers
124 views
How to exclude singularities for `NMinimize`
I have an messy expression and want to apply NMinimize to it, have no idea how to force NMinimize to ignore the singularities it ...
2 votes
1 answer
80 views
Conversion of an expression to function yields Tag Plus in ... is Protected error
I'm trying to implement polynomial interpolation. My current implementation involves generating an expression that is the final equation that will be plotted. While plotting the function itself works ...
1 vote
2 answers
226 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 ...
0 votes
1 answer
103 views
Generating a 2 variables polynomial with constraints
I would like to generate automatically a polynomial in two variables $(s,t)$ which is symmetric under the exchange of those variables. There are three kinds of terms; at order $k$, we have $$(s+t)^k, \...
1 vote
1 answer
127 views
Clarification of the $MemberQ$
There are a number of expressions: ...
1 vote
1 answer
187 views
How to convert this Mathematica expression to another, as described here?
I am working on a function of which the core will consist of something like: ...
0 votes
2 answers
101 views
How to turn FindFit result into function within a Module context
I'm trying to construct a 'normal' function (with formal parameter) from the FindFit result within a Module context. While this works on a global level: In := ...
4 votes
1 answer
176 views
Alternatives in pure function construction
When I declare a function f in the following form: f[a|b] := 1 then I can use it like: ...