Questions tagged [replacing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
59 views

"Total" function for a Boolean expression

I have a very long vector of the form ...
1
vote
1answer
100 views

Repeating and Sequencing Procedures with two Do-loops

I have a Do loop where I'm looking for the value of certain parameters that respect the conditions inside an If, and with those values, a run another Do to make another calculation of an expression ...
1
vote
1answer
54 views

Editing complex arrays for export to Python

Quick question, can anyone advise on an efficient way to convert complex arrays with complex part denoted '${I}$' in Mathematica to '$j$' (as used in Python) and curly brackets '{}' replaced with '[]' ...
1
vote
1answer
71 views

Use replace in rule

I would like to define two rules: one for the material and thickness the second one for volume and mass ...
1
vote
1answer
47 views

Replacing variable in function definition

I would like to have a series of functions that depend one another, indexed by a number, and that are defined via a Do loop. However, Mathematica seems unable to replace the index in the loop. My ...
3
votes
2answers
91 views

Comparison of Coefficients involving complex exponentials

I'm trying to solve a couple (independently) of equations of the following type $ a_0 x + 3 a_1 y(1 + xe^{i3q} + e^{-iq + 2ip}) + ... = 0, \forall x, y, q, p$. Using SolveAlways doesn't work well. So ...
1
vote
2answers
90 views

Extracting subexpressions

This is a recurrent topic: replacing subexpressions. See for instance: ...