ecterrab

13431 Reputation

24 Badges

19 years, 359 days

MaplePrimes Activity


These are replies submitted by ecterrab

Now that the Maple Student Edition is free to use, these days at home are also an excellent opportunity to discover computer algebra. Although there is superb mathematics online, there is very little on "how to do with a computer what a student already knows how to do with paper and pencil". Maple for Beginners bridges that gap.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@lastgunslinger 

Yes you can set the tetrad to any specific valid value. This is explained on the help page ?Physics,Setup, the section "tetrad". For an example of what is described in ?Physics,Setup, see eq.(10) of the help page ?Physics,Tetrads,TransformTetrad, where a tetrad is first derived (in any way, yours is also valid), then set. Something important to have in mind: The command Tetrads:-IsTetrad can check whether a matrix that you think is a tetrad, satisfies or not a tetrad definition, and tell you whether it is an orthonormal or null tetrad. Keep an eye also in the signature, whether it has the time component in position 4 or position 1, and whether the timelike component is positive or negative.

Regarding "Which brings me to my next question: would it be possible to define my own spin connection?", the four null vectors of the Newman-Penrose formalism are also commands of the Physics:-Tetrads package and the value of their components is automatically derived from the value of the tetrad. So setting a tetrad automatically sets the null vectors, and with that the Weyl and Ricci scalars related to the spin connection.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@digerdiga 

The first line is yours. The second one is the suggestion given to you. The third line is what you wanted to achieve, accomplished as shown in the link provided to you, "The hidden SO(4) symmetry of the Hydrogen Atom", where you see: first SortProducts is applied, then Simplify is applied, with regards to indices, algebras or all. Reading the help page of Physics,Simplify may also be of help for you.

I am out of this thread - won't be replying further - sorry for that.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@digerdiga 

You say an answer is not satisfying you. But nothing in what you write indicates you read these answers. E.g., that link showing how to use Library:-SortProducts and SubstituteTensor. 

No, you don't get on my nerves. I only find your approach of asking and pseudo-reading the answers not productive. 

You keep asking why it can not commute X^2[b] with X[a]. Of course it can. But being noncommutative objects, the ordering X[a]^2 X[b] or X[b] X[a]^2 has no normal form. You can impose the one you'd prefer using SortProducts. But you are not taking that answer into account.

Then look at your way of expressing yourself about what others offer you as help: "I'm already reading your tut regarding the Sort-thing" Digerdiga, I am not spending my time here to read this kind of reply. Nor this kind of sarcasm: "If not here, where should be place for discussion ! ?"

Don't take it wrong, but I suggest you revise your style of communication if you want to keep receiving help in this forum. 

Remember: none of these replies or answers for help that you see posted in MaplePrimes are part of the job of anyone participating in this form. They are just voluntary activities.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@digerdiga 
This is not for a long debate. Answers were given. You need to read them. Copying here again: "the two commands that help are Library:-SortProducts and SubstituteTensor. You can see several examples of how that is done in the post The hidden SO(4) symmetry of the Hydrogen Atom."

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

There are some things interrelated. One is the one you focused when you posted: timelimit is expected to interrupt in time, but it wasn't (this is addresed in the Physics Updates v.627 by dodging the problem). The timelimit problem is tracked. Then there is the problem in trig/reduce also dodged in v.627, but there is a problem in trig/reduce, also tracked. Next there is a problem in int also tracked. Finally, if all that works, there is the question of whether the Maple implementation of the character strip method (that includes several tweaks and twists enough for a large post) can solve this particular problem. It can certainly solve many of these problems. And before I forget about this again: many thanks for posting the example, the library grows with these posts.

On a separate note, I am on my way, with Katherina von Bulow, preparing a comparison of performances on tackling all the non-linear PDEs of Polyanin's textbook.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@Preben Alsholm 

Good insight; I am adding that information to the report of the problem, for the people who develop the integrator.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

As you may have noticed, there is still the issue of why it hangs in int. This is the integral: int((sin(lambda*x)*cos(mu)+cos(lambda*x)*sin(mu))^k*(x^n)^2, x). That has also been tracked; it shouldn't hang there either. From what I can see (by eye) I'd say, with high probability, that this integral is uncomputable; most integration methods don't apply in a case like this one, from where I would expect the code to give up quickly.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

The Maple 2020 version of the Physics package is also one of the most exciting releases. Besides consolidation of previously existing functionality, based on feedback along the year, getting echo on those improvements by making them available around the clock through The Maplesoft Physics Updates, for Maple 2020 there are significant (breakthrough) developments in

The whole list is large. The details are in What is new in Physics for Maple 2020.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

To the side, when teaching how to use computer algebra at university, the first programming exercise I passed was to write, using the Maple programming language (that is so close to plain English), a 'structure' program, that shows the structure of any thing you pass to it. For example:

structure(A + B)

                               [`+`, [A, B]]

structure((A + B)*C)

                      [`*`, [[`+`, [A, B]], C]]

The key command for this is op (for operand). None of this is necessary for representing Maxwell equations. Still, you or others may find this comment of value. I noticed that everybody who spent an afternoon tunning such a structure command developed some orders of magnitude of intuition about how computer algebra systems work, speeding up matters at the time of using them.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

 

@Steve Roper 

Right before your eq.(4.4), instead of subs(Eq_1, %) use simplify((4.3), {Eq_1}, {E__field_(x, y, z, t)}). That will accomplish, in one go, the two things you are asking, that is to replace E by D and to expand the double curl.

If you want to achieve the same in two steps, then instead of subs(Eq_1, %), use subs(isolate(Eq_1, E__field_(x, y, z, t)), %), followed by expand(%).

Then if you want as you say to enforce Divergence(D) = 0, say the output of the previous line is eq.(4.5), enter simplify((4.5), {Nabla . D__flux_(x, y, z, t) = 0}).

I also see that in your worksheet you use % instead of equation labels. You are missing one of the best features of the Maple system :) Serious, give a look at ?equation,labels.

Three more comments.

In brief (you fill the dots or read the papiro help page ?simplify,siderels) a line of the form simplify(A, {B}, {C}) just means: simplify the expressions A (could also be a set or list of expressions) using the equations in the set {B} to eliminate the objects you indicate in the set {C}.

Regarding the previous answer, on why you need to first differentiate (or use isolate in the alternative above in two steps), always think operands of an operation, everything is of that form. When using substitutions, then, think substituting operands. When using subs, you always substitute the left-hand side by the right-hand side. In Maxwell_2, the left-hand side is  Curl of H. In eq.(4.2), the target, there is no Curl of H operand, but Curl of the derivative of H operand (it is the operand [2, 3]; try op([2, 3],...)). Altogether, you need a left-hand side substitution equation with the Curl of the derivative of H. Differentiate Maxwell_2, and you have it.

To the side: if you have eq := A = B, but you actually want to substitute B by A in some expression (so subtitute the rhs by the lhs), then remember that (rhs = lhs)(eq) returns B = A, that you can now use with subs.

The third comment is about your comparison with Mathematica. In Maple, we have inert objects, since the year 2000. Everything preceded with % is an inert object, and you activate inert objects using the value command. In Mathematica, since their version 10 (kinda recently) you have 'Inactive,' that you activate using 'Activate.' They got the idea, even the grey display introduced in Maple to represent inert objects. BUT there is a significant difference: in Maple, you can differentiate, simplify, compute series and operate in general over inactive objects (more and more flexible at each release), I don't think you can do that with Mathematica and Inactive[] structures. Less relevant, however important too, both input and output in Maple are more natural (the % prefix is delicate if compared with enclosing things in Inactive[], this is especially relevant when there are nested objects like functions with arguments). You didn't use inert forms to formulate these equations in your worksheet, but you can, if you wish.

Finally, the Physics:-Vectors package has a large number of computational properties and mathematical operations implemented - there is no equivalent to this package in Mathematica. This difference is not small. Because of Physics:-Vectors, you can formulate these equations also with non-inert objects as you are doing (in Mathematica, you cannot do it  without Inactive). Next, give a look at the input lines used in the Mathematica notebook you linked, things like Inactive[Curl][#, {x, y, z}] &/@ ampere /. j -> (0 &) and compare with the input lines you are using in a Maple worksheet and you see the issue. Because in Maple you have computational representations for the objects, their properties and related operations, you can first think, then input things almost as you do with paper and pencil (but for having in mind this operands of operators subtlety). Input lines like the one shown above and others seen in the Mathematica notebook linked are not of that sort.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

For A and B 4x4 matrices where A . B = B . A = Identity matrix, you do not have A[2,2] * B[2,2] = 1. So your idea of verifying that f = e^(-1) by taking e[~2, 2] * f[~2, 2] and expecting the number 1 is not correct. For example, enter A := Matrix(4, symbol=a), then B := A^(-1), then try A[2,2] * B[2,2]: you do not get 1.

That said, I opened your worksheet: you define `e` indicating a Matrix 4x4 in equation (12). Then you define `f` also indicating a Matrix 4x4 in equation (13). But if you take the product of those two matrices you do not get the identity matrix. So it is not the case that f = e^(-1) as you say.

Besides that there is a wrong use of the Redefine command: from what you entered, it is not 'fromsignature' but 'tosignature'. You see that from the output of the command, with a -1 in position (3, 3) instead of (1, 1) as is clear from your line element ds2, that starts with -dt^2, and the coordinates you set that have t in position 1.

I suggest you to first assure you have the right definitions for e and f, that the matrices you are using to define them are indeed inverses of each other. For that purpose, just take the product of the two matrices (use the dot operator, . , not the start operator *) and if you don't get the identity matrix for the result then you know you don't have matrices such that f = e^(-1).

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

Your statement is missing substance. Literally, it is not true. I can type everything in the Maple GUI and it is not hard, at all. So you must be having something more specific in mind. Could you please explain what you are talking about?

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@acer 

From wiki: "According to the Raspberry Pi Foundation, more than 5 million Raspberry Pis were sold by February 2015, making it the best-selling British computer.[10] By November 2016 they had sold 11 million units,[11][12] and 12.5m by March 2017, making it the third best-selling "general-purpose computer".[13] In July 2017, sales reached nearly 15 million.[14]In March 2018, sales reached 19 million.[15]". 

I don't know how many of them came with a copy of Mathematica, and of course, not everybody uses the software that comes with a computer, but looking at those numbers I'd say it is a significant way of reaching people.

Raspberry Pi 4 Model B was released in June 2019 with a 1.5 GHz 64-bit quad core processor, on-board ac Wi-Fi, Bluetooth 5, gigabit Ethernet, USB 2.0 and 3.0 ports, and dual monitor support (4K resolution). Wow.

These are small computers developed in the UK to promote the teaching of basic computer science in schools and in developing countries. That 2019 newest model runs versions of linux and windows 10, cost approx 35 dollars and is of the size of a credit card, albeit without peripherals like keyboard, mouse or screen. All in all, I like the project. It looks like a nice idea that is having more impact than what they have antecipated. All the info is from wikipedia.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@macrobbair 

Yes, that is what is written in the previous reply. Quoting from there: "Could you please upload a worksheet with the formulation and related text comments? For that purpose you can use the green arrow you see when you write a comment / question here in Mapleprimes."

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

First 17 18 19 20 21 22 23 Last Page 19 of 60