The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
74 views

Initialize table in a Module but Break if criteria not met

I am initializing a table inside a function as follows: f[a1_, a2_, a3_] := Module[{RM = Table[a1+a2+a3+i1, {i1, 1, 10}]}, Plus@@RM] I am calling the function ...
0
votes
0answers
14 views

Make ConditionalExpression go away [duplicate]

I have a conditional expression like this, coming from an integral (can't post what it is here, because it's from a HW assignment): ...
1
vote
3answers
109 views

Where Statement

Is there a "parallel" way to perform these operations? Indices = {} For[i = 1, i <= Length[w], i++, If[w[[i]] < 0, AppendTo[Indices, i]]] Which gives a ...
0
votes
1answer
28 views

Resolve a conditional expression including exists and forall

I don't know the Resolve function exactly, especially when involved with Exists and ForAll, ...
0
votes
2answers
76 views

Replace matrix with conditions

I want to replace the values of 1. in slot under the condition that the year and month in basevalue and ...
6
votes
2answers
168 views

Flow/graph-based programming in Mathematica?

Is it possible in Mathematica to write a program inside a graph? For example if you have a bunch of different If[] statements that you need to embed within one ...
2
votes
3answers
104 views

Join matrix based on conditions

Given the following matrix: ...
0
votes
0answers
32 views

Conditional Expression Help [duplicate]

I'm doing some symbolic calculus with Mathematica, and I set results that look like ConditionalExpression[expression,Re[var]>0] I know that this condition is ...
1
vote
1answer
27 views

Table doesn't replace inside conditionals (If, Which) [duplicate]

This: Table[If[cond, y], {y, 1, 3}] outputs this: {If[cond, y], If[cond, y], If[cond, y]} The ...
5
votes
2answers
154 views

How to “ReplaceAll” using a set of conditional expressions instead of a list of rules [closed]

Suppose that I have two linear functions f[x_] := f0 + f1 x g[x_] := g0 + g1 x and a (possibly rather complicated) set of conditional expressions, obtained ...