Skip to main content

Questions tagged [condition]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
104 views

Boundary сonditions specified in different domains

I am modeling mass transport phenomena involving convection and diffusion within a two-dimensional box. The box has a height ranging from 0 to h along the y-axis and is divided into two domains along ...
LUIS MORALES's user avatar
4 votes
4 answers
257 views

How to combine multiple pure conditions with an AND operator?

I have a list of Pure conditions {con1[#]&,con2[#]&,con3[#]&} and want to combine them in one Pure Function ...
dnml101152's user avatar
5 votes
2 answers
267 views

Define a function on a single element but linear in sums

I have tried searching around but I couldn't find the solution to this very simple setup. I want to define a function $f(x)$, which should satisfy $f(x+y)=f(x)+f(y)$, and whose action I only want to ...
Adrien Martina's user avatar
2 votes
2 answers
102 views

How to evaluate conditional roots in ContourPlot3D?

I have the following Mathematica code: ...
codebpr's user avatar
  • 2,443
0 votes
1 answer
72 views

How to give conditions and solve an integration? [closed]

I want to solve an integration, $\int \frac{da}{\sqrt{\frac{8 \pi G \Lambda}{3}a^2 - K +c_1 a^{-(3k+1)}}}$ Here, how to give conditions k $\ge$ 0, G$>$ 0, $\Lambda$ $>$ 0 and K can be zero, ...
apk's user avatar
  • 307
0 votes
0 answers
35 views

Indefinite time for Reduce a set of conditions

Following command is taking too ling time to run. ...
SK SARIF HASSAN's user avatar
3 votes
1 answer
96 views

Cannot delete list elements within (/;) condition scope

I encountered a problem when trying to delete list elements within the scope of (/;) condition. Although I used the directive list=Delete[list,x], it still couldn't ...
liqi3837671's user avatar
-1 votes
1 answer
76 views

Right writing of While loop

Help me pls write While loop correctly. I have next code: ...
Mam Mam's user avatar
  • 1,883
4 votes
6 answers
168 views

Checking conditions of two-dimensional table

I have a 2 dimensional table and I would like to test if for each vector, x^2 + y^2 > 5. vector is an element (x.y) of the table. Is it possible to manipulate the elements of a table this way? <...
epselonzero's user avatar
1 vote
0 answers
64 views

Unset Variable Using condition or If

Using Condition ...
eason's user avatar
  • 197
0 votes
1 answer
49 views

weird behavior in pattern-matching and condition

I'm confused by the following three different results involving pattern matching and condition. ...
Lelouch's user avatar
  • 543
3 votes
1 answer
74 views

Condition block scoping

I have a list of functional rules of the type F[x_]:=y;cond[x] with always the same condition. The list is long and rule 1 of programming says: "Do not copy!&...
Hauke Reddmann's user avatar
2 votes
1 answer
54 views

Assessing conditions on list of solutions

I have a list of solutions from Solve[] in the form ...
user12734's user avatar
  • 349
1 vote
2 answers
78 views

how to select elements from do-loop for some condition?

This is my original coding: Do[Print[Det[Table[(-0.15 + 0.001*x)^(i + j), {i, 1, 9}, {j, 1, 9}]]], {x, 1, 10}] I want to select ...
Sophia's user avatar
  • 23
1 vote
1 answer
179 views

Testing a condition on an expression throughout a range [duplicate]

How can one test a condition on an expression throughout a range? My true expression is rather complicated, but consider this minimal example: Is the function $2 - x^2$ positive throughout the range $...
David G. Stork's user avatar