Why Is Learning Maxima So Challenging for Beginners?

In summary: Ricci scalar. However if you apply the divergence operator to the Ricci tensor you get another tensor that has more information...but you can't construct a scalar from it.In summary, the conversation was about the user's difficulties with using Maxima for tensor calculus. They were seeking a more explainable manual and asked for help with specific problems. Another user provided a link to a user manual for Maxima and shared a script that could help with solving problems related to the Schwarzschild solution. The user was grateful for the help and asked for more scripts. There was also a discussion about discrepancies in the results obtained through Maxima and manual calculations. The conversation ended with the user expressing their doubt about the existence of multiple
  • #1
Jomapil
14
0
Hello, everyone.

Excuse me but I think I should post this question in sub-forum Calculus & Beyond Learning Materials but I can't access to that sub-forum and so...

The question is:
I began to learn to work with Maxima and I have several doubts. The help of the program is a little difficult for me. Is there another manual more explainable?
For example 1) I can't display the components of Rieman Tensor.
2) In the stateman Rieman(dis) what are the "values" to dis?
3) christof (lcs) ou christof(mcs) sometimes displays those components sometimes nothing. Why?

Thank you for your help.

Good evening and till the next.
 
Physics news on Phys.org
  • #2
Here is a link to the user manual for Maxima.

maxima.sourceforge.net/docs/manual/en/maxima.pdf

or

"michel.gosse.free.fr/documentation/fichiers/maxima.pdf"[/URL]

Your questions are answered in the ctensor section.

[QUOTE]2) In the stateman Rieman(dis) what are the "values" to dis? [/QUOTE]
'dis' is 'true' or 'false'

[QUOTE]christof (lcs) or christof(mcs) sometimes displays those components sometimes nothing.[/QUOTE]
Sometimes they are zero !
 
Last edited by a moderator:
  • #3
Thank you, Mentz114 for your answer, but I continue with the doubts.
I'm initiating the use of Maxima.
I'm going to display a summary to you better understand my problem.

csetup();
dimension - 3;
diagonal - 1;
"enter the 3 diagonal elements" ( spherical coordinates )
display the metric? - Y or N;

and now:

dis= TRUE;
riemann(dis);


and it only displays "done" or sometimes "The spacetime is flat"

I hope anyone understand my "summary". Why it doesn't display Riemann Tensor?


Good evening and till the next.
 
  • #4
Hi,

it is much easier to use scripted batch files. I list a simple script below that works out the tensors for the Schwarzschild solution.

If the message 'This spacetime is empty or flat' comes, it means all the components of the Riemann tensor are zero.

I have other scripts also.

Code:
/*  
Schwarzschild simple

save as name.mac

Load from the file menu - > File|Batch file
*/
kill(all);
load(ctensor);
/* set some flags */
cframe_flag: false;
ratchristof: true;
ratriemann : true;
ratfac : true;
ctrgsimp: true;
/* define the dimension */
dim: 4;
/* list the coordinates */
ct_coords: [t,r,theta,phi];
/* set up the metric */
/* assign to lg a matrix of zeros  ':' means 'assign' */
lg:zeromatrix(4,4);
/* now add the Schwarzschild coefficients */
lg[1,1]:-c^2*(1-2*m/r);
lg[2,2]:1/(1-2*m/r);
lg[3,3]:r^2;
lg[4,4]:r^2*sin(theta)^2;
/* make the inverse matrix */
ug:invert(lg);
/* get Christoffels */
christof(mcs);
/* calculate and display Ricci tensor, ( 'dis' = true ) */
ricci(true);
/* Riemann with all indexes down */
lriemann(true);
/* Riemann with all indexes up */
uriemann(false);
/* calculate Einstein tensor */
einstein(false);
/* show Einstein tensor as a matrix */
cdisplay(ein);
/* Kretschmann scalar */
rinvariant();
/* Geodesic equations */
cgeodesic(true);
 
  • #5
Your help, Mentz114, is valuable.
The file you sent me is a great help.
The manual of Maxima, opposite to other manuals, isn't much explainable with very few examples.
Your file will be my initiation to the learning of Maxima.

Thank you for your kindness.

Till the next.
 
  • #6
Hello, Mentz114.
Your help was very important for me to learn Maxima. I think my error was not to use DEPENDS. I think it was so because I wasn´t be able to obtain Christoffel symbols or Riemann tensor. But in your script you don't use that statement! I don't understand the explanation of the manual. So I (we) don´t need such thing... In your message I see that you say you have more scripts. I did't want to trouble you but if it doesn't cause much work I would appreciate some of those scripts to learn anything more.
Thank you very much for your help.

Best regards and till the next.
 
  • #7
Most of my scripts deal with solutions of the GR field equations. Is that what you want learn or just how to use Maxima for general algebra and equation solving ?
 
  • #8
The basics of Maxima are easy to understand and to perform. My problem was those special packages such ctensor and other ones probably that are not well explained ( for me ). But now with the copy of your batch I could practise and understand a little more.

But I have a problem that I ask you if you knows the answer:

I solved the problem 8.13 of David Kay's Schaum Outline Tensor Calculus manually and it was correct with the solution of the book. But using Maxima with "My" batch I obtained a result a "little" different - The components of Ricci Tensor of the book ( and mine ) are ALL negative. But the results of Maxima are ALL positive. Christoffell symbols and Riemann Tensors are concordant. But as you can see Ricci have + --> - .
Do you know why that?

My batch is:


/*


Schwarzschild simple





save as name.mac





Load from the file menu - > File|Batch file


*/


kill(all);


load(ctensor);


/* set some flags */


cframe_flag: false;


ratchristof: true;


ratriemann : true;


ratfac : true;


ctrgsimp: true;


/* define the dimension */


dim: 3;


/* list the coordinates */


ct_coords: [x1,x2,x3];


/* set up the metric */


/* assign to lg a matrix of zeros ':' means 'assign' */


lg:zeromatrix(3,3);


/* now add the Schwarzschild coefficients */


lg[1,1]:1;


lg[2,2]:2*x1;


lg[3,3]:2*x2;


/* make the inverse matrix */


ug:invert(lg);


/* get Christoffels */


christof(mcs);


christof(lcs);


/* calculate and display Ricci tensor, ( 'dis' = true ) */


ricci(true);


/* Riemann with all indexes down */


lriemann(true);


/* Riemann with all indexes up */


uriemann(true);


/* calculate Einstein tensor */


einstein(false);


/* show Einstein tensor as a matrix */


cdisplay(ein);


/* Kretschmann scalar */


rinvariant();


/* Geodesic equations */


cgeodesic(true);



Thank you very much and a good week-end.
 
Last edited:
  • #9
If the Riemann tensor agrees with your calculation, then so should the contraction to give the Ricci. If you raise the first index of uriem and contract on the first and third indexes then I would expect the result to be positive.
 
  • #10
Thank you, Metz114.

But now it emerges a doubt. If there are several Ricci Tensor according to the contraction selected, there are several solutions for a problem of GR using Ricci tensor!

I thought the selected contraction was a general convention.

Good night.
 
  • #11
If the Riemann tensor agrees with your calculation, then so should the contraction to give the Ricci. If you raise the first index of uriem and contract on the first and third indexes then I would expect the result to be positive.
I made an error. I should have said "If you raise the first index of lriem ..."

But now it emerges a doubt. If there are several Ricci tensor according to the contraction selected, there are several solutions for a problem of GR using Ricci tensor!
The only meaningful contraction is 1st and 3rd indexes.
 
  • #12
At this moment I'm completely explained. Thank you for your kindness and patience with me. I hope to meet you again.

Till the next.
 

1. What is Maxima and why is it difficult to learn?

Maxima is a computer algebra system (CAS) that is used for mathematical calculations and symbolic manipulations. It is difficult to learn because it has a steep learning curve and requires a strong background in mathematics and programming.

2. What are some common difficulties that people face while learning Maxima?

Some common difficulties that people face while learning Maxima include understanding the syntax and commands, learning how to use the various functions, and grasping the mathematical concepts behind the calculations.

3. How can I overcome the difficulties in learning Maxima?

To overcome the difficulties in learning Maxima, it is important to have a strong foundation in mathematics and computer programming. Additionally, practicing regularly and seeking help from online tutorials and forums can also be helpful.

4. Are there any resources available to help with learning Maxima?

Yes, there are many online resources available to help with learning Maxima. These include tutorials, forums, and online communities where users can share their knowledge and help each other with difficulties.

5. Is it necessary to learn Maxima for a career in science?

It depends on the specific field of science. Maxima is commonly used in fields such as mathematics, physics, and engineering. However, it may not be necessary for all scientific careers. It is best to research the specific requirements for your chosen field to determine if learning Maxima is necessary.

Similar threads

  • STEM Academic Advising
Replies
16
Views
1K
Replies
8
Views
4K
Replies
1
Views
813
Replies
71
Views
9K
  • Mechanical Engineering
Replies
14
Views
9K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
3K
  • Programming and Computer Science
2
Replies
60
Views
16K
  • Science and Math Textbooks
Replies
1
Views
3K
Back
Top