# Tagged Questions

Questions about programming or mathematical constructs that enable verification, selection, or branching behavior when one or more criteria are determined to be True.

1answer
61 views

### Calculate minimum subject to conditions

What is the lowest value of $c$ such that $\qquad a^2 + b^2 = c^2$ and $\qquad ab + ac + bc = 100$ I want to solve this problem with Mathematica Edit These conditions are generated from a right ...
2answers
36 views

### If/else conditional in Mathematica

I am a beginner in Mathematica. How can I turn the following Matlab commands into Mathematica commands. ...
0answers
47 views

### A question about structure of if-else [on hold]

I have coded this program in Mathematica but I am not sure to make correct structure of if-else. Is anyone able to present guidelines in a way that error of program was not met? ...
2answers
130 views

### Better use of pattern matching in replacing elements of a list

I have a list of reals and I'm replacing those which are contained in a given interval with two different values depending on wheter the selected reals are positive or negative. I came up with this ...
0answers
128 views

### What is the symbol FENone for?

I have run into the symbol FENone multiple times. What is this symbol, and what is it designed to indicate? All I could find is that FE indicates the front-end, but it's unfortunately a very ...
1answer
46 views

### Do double vertical bars in ConditionalExpression mean 'or'? [closed]

I have a very simple interpretation question. I think that double vertical bars in a ConditionalExpression given by Mathematica as the result of an integration must mean 'or', but I am hoping to ...
2answers
49 views

### How to plot data with different colors (or symbols) depending on a condition [duplicate]

Let's consider a simple example. I want to plot a function on [0;2], depending on a condition: if x<1, I want to plot ...
1answer
106 views

### Why this code gives different output for differents runs

Edit Here is my code to plot many constrained variables in (x,y) plan : the variables are : ...
2answers
45 views

### ListPlot function in 2D- plan in two varibles

Suppose a function f[s,k]. How to Listplot this function in 2D plot in (s,k) plan, such that ...
2answers
197 views

### Selection of points based on position

I have a series of points, for example: points = {{0, 0}, {1, 3}, {2.5, 2.5}, {4, 4}, {6, 6}}; I want to join all points successively unless, for example, the y-...
2answers
78 views

### Using solve on conditional functions

I know that the code is pretty long, but most of it is just defintion. Do you see why the Solve gives me "his system cannot be solved with the methods available to Solve" back? ...
0answers
59 views

### Solving a system of equations with conditional functions

With your help i am getting closer to the solution of my problem. I know that the code is long but most of it is boring definition. At the beginning i am just defining function, which works at the ...
0answers
52 views

### Use If condition with ListPlot

Here is my code to use If condition with PLot: ...
1answer
59 views

### Solving a polynomial where variables are constrained to take only some values

I want to find out which combinations of 1's and 0's would make this kind of equation be null: ...
3answers
135 views

### Do loop with If condition

I have the following formulas: 1- A cross section: sigma[beta_,alpha_,Y4_] := c^2/(256*Pi) * (1/2) ( Ytt[beta,alpha,Y4]/ m ) * Abs[A]^2 Where c is a strong ...
2answers
41 views

0answers
27 views

### Semi-infinite sheet and Spherical inversion

I'm trying to define a function that will give a semi-infinite sheet (i.e. a sheet which exists when z=0 and x>0 for all y). I've tried using ConditionalExpression and ForAll, but when plotted using ...
2answers
80 views

### Find most general 3-tensor under given constraint?

Consider A to be a general $2\times 2\times 2$ tensor: A = Table[ a[i,j,k], {i, 1, 2}, {j, 1, 2}, {k, 1, 2}]; pictorially one ...
1answer
82 views

1answer
165 views

### Why does pattern test work only with pure functions?

Why is it that pattern test works only with pure functions? Cases[Range[0, 70], _?(Divisible[#, 7] &)] Cases[Range[0, 70], x_?(Divisible[x, 7])] I ...