How to Solve Simultaneous Equations in a Do-Loop with Mathematica 7?

  • Thread starter Thread starter kaizen.moto
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion centers on solving simultaneous equations using a Do-Loop in Mathematica 7, highlighting issues with syntax and clarity in the provided tasks. The first task has missing semicolons and matrix errors, leading to excessive computations. Task two is noted as confusing but functional, while task three lacks clarity on substitutions needed. The correct approach for substitutions and summation is provided, but the original poster's questions remain partially unanswered. For better assistance with Mathematica syntax, it is suggested to seek help in specialized forums.
kaizen.moto
Messages
94
Reaction score
0
Hi all,

I got stucked with the problem with regard to Do-Loop and solving simultaneous equations together.

Please help me on this matter and the file is attached, Iam using Mathematica 7

Thanks
 

Attachments

Mathematics news on Phys.org
In Task 1 in (W1r)=(3m*n(Ar+Ar+1)...)) there is a missing ; and there are missing or extra {} or levels in your matrix equation that give errors. Once I try to guess what to do to fix those then it grinds away producing 37500 matrix equations and I assume it will finish in the future.

Task 2 is written in a very strange way but it does what you seem to request.

Task 3 is very difficult to understand. Substitute A0,A1,B0,B1 from Task 2 is clear. But substitute in what? In Task1? Sum W1r=0 what? In Task1?

To do substitutions in an expression usually you use
expression//.{A0-> -U10,A1-> -U11,B0-> -V10,B1-> -V11}
and that will replace all A0, A1,B0,B1 with your desired values in expression.

To Sum usually you use
Sum[W1r=0,{m,1,99,2},{n,1,99,2}]
if you have assigned the desired expression to W1r.

But it is not clear that I am answering what you have asked for or you have asked for what you need.

Perhaps the physics forums OtherSciences->Math&ScienceSoftware would be a better place to ask Mathematica syntax questions.
 
Perhaps you can see how to adapt this very simple example to your actual problem.

In[4]:= w=3m*n*a+8n^2*b;
rules=Solve[{a+u==0,b+v==0},{a,b}];
Sum[w//.rules,{m,1,5,2},{n,0,3,1}]

Out[6]= {-162 u-336 v}
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top