Why Is Learning Maxima So Challenging for Beginners?

Click For Summary

Discussion Overview

The discussion revolves around the challenges beginners face when learning to use Maxima, particularly in the context of tensor calculus and general relativity. Participants express specific difficulties with the software's functionality and documentation, as well as issues related to the computation of the Riemann tensor and Ricci tensor.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses difficulty in understanding the help documentation for Maxima and requests alternative manuals.
  • Another participant provides links to the user manual and mentions that certain commands, like 'dis', can be set to 'true' or 'false' to display tensor components.
  • A participant shares a summary of their Maxima setup and questions why the Riemann tensor is not displayed correctly, receiving suggestions about potential issues with their configuration.
  • One participant suggests using scripted batch files for easier tensor calculations and provides a sample script for the Schwarzschild solution.
  • There is a discussion about the output of the Ricci tensor, where one participant notes discrepancies between their manual calculations and Maxima's results, specifically regarding the sign of the components.
  • Another participant questions the implications of having multiple Ricci tensors based on different contractions and whether this leads to multiple solutions in general relativity.
  • Participants discuss the importance of correctly raising indices and contracting tensors to obtain consistent results.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and agreement on the use of Maxima and the interpretation of tensor calculations. There is no consensus on the reasons for discrepancies in tensor outputs, and multiple viewpoints on the necessity of certain commands and conventions remain unresolved.

Contextual Notes

Some participants highlight limitations in the Maxima documentation, noting that it lacks sufficient examples and explanations for beginners. There are also unresolved questions regarding specific commands and their effects on tensor calculations.

Who May Find This Useful

Beginners learning Maxima, particularly in the context of tensor calculus and general relativity, may find this discussion valuable for understanding common challenges and solutions shared by peers.

Jomapil
Messages
14
Reaction score
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
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:
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.
 
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);
 
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.
 
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.
 
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 ?
 
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:
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.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 71 ·
3
Replies
71
Views
11K
  • · Replies 14 ·
Replies
14
Views
12K
  • · Replies 4 ·
Replies
4
Views
5K
Replies
60
Views
18K
  • · Replies 1 ·
Replies
1
Views
3K