Skip to main content

Questions tagged [expression-construction]

The tag has no usage guidance.

1 vote
2 answers
72 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 ...
seva011's user avatar
  • 336
0 votes
1 answer
78 views

How to modify the order of symbols to make the result look more well and use some fixed expression 1-q, 1-c-q and so on?

In most cases, my expressions are quite complex, like the following expr and expr2. How can I make them look better, for instance, I want to use expressions like 1-q or 1-c-q and so on.
Chin Ching CHAN's user avatar
2 votes
1 answer
43 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 ...
Jason Ham's user avatar
3 votes
2 answers
166 views

Precise control of fraction expression

It seems that expression for fraction differs when the number of terms in the numerator is more than 2. ...
imida k's user avatar
  • 4,315
0 votes
2 answers
131 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
1 vote
1 answer
129 views

Fitting an inverse power law [closed]

Is there any reasonably fast way of finding a function of the type that best fits a given data, for some K and n? For example, the following data closely follows an inverse power law ...
sam wolfe's user avatar
  • 4,903
0 votes
1 answer
54 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, \...
Rubilax96's user avatar
-1 votes
1 answer
51 views

Swap Composite Command Components

Let's take a composite Mathematica command: A[B[]] where A and B - two arbitrary ...
ayr's user avatar
  • 2,434
1 vote
1 answer
73 views

Clarification of the $MemberQ$

There are a number of expressions: ...
ayr's user avatar
  • 2,434
1 vote
1 answer
172 views

Need to find a unique mathematical expression (not in documentation) that is as short as possible but takes a good amount of time to evaluate

I am writing a public ResourceFunction and I need a good clever use case that should not appear to emulate any examples in the official documentation but will ...
Jules Manson's user avatar
  • 2,467
1 vote
1 answer
119 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: ...
nilo de roock'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
0 votes
2 answers
63 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 := ...
Anatoly Ressin's user avatar
4 votes
1 answer
251 views

Why isn't this expression returning true to being positive when it is clearly positive?

Consider: ...
Math's user avatar
  • 407
4 votes
1 answer
127 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: ...
Pedro Sobota's user avatar

15 30 50 per page
1
2 3 4 5
8