13673 Reputation

18 years, 348 days

Fixed within the Maplesoft Physics Updat...

Note that conjugate(a + b + c) does not automatically distribute over the sum. If that is what you want, in the Maple context, you need to use the expand command. It's been noted (see some of the replies) that being N* a vector, expand was required twice; you asked why: it was an oversight, and applying it only once should have sufficed. That is fixed within the Maplesoft Physics Updates v.1510 or newer. So now map(expand, N*) performs the expansion to the end. As usual, to install the Updates, open a worksheet and input Physics:-Version(latest);

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

PDEtools:-Solve + indicate the (Y/N) de...

One way to do that: substitute l_1 = l_1(k[1], k[2], k[3], a[1], a[2]),  l_2= l_2(.. same dependency as l_1 ...), etc., so indicate complete dependency on all the parameters. Then add the following differential equations: diff(l_1(k[1], k[2], k[3], a[1], a[2]), k[2]) = 0, diff(l_1(k[1], k[2], k[3], a[1], a[2]), k[2]) = 0, etc., the same for l__2(...), etc. where each "derivative = 0" indicates the "not dependency of each l_j on the parameters you say they don't depend".

Now, you have augmented the system, formulating the problem correctly; now, call PDEtools:-Solve on that augmented system.

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

Implemented in the Physics Updates v.147...

Hi,
This is now implemented and distributed within the Maplesoft Physics Updates v.1477 or newer. As usual, to install it, open the GUI and imput Physics:_Version(latest). The implementation is as follows:

• The function being differentiated can have any number of variables.
• The prime and dot display of derivatives is ON provided the derivative, which can be of any order (1st, 2nd, etc.), is not a mixed derivative. For mixed derivatives, e.g. diff(f(x, t), x, t), the display is as before this update.

The following is your worksheet plus comments, showing the new functionality at work.

 (1)

General metric

Lecture 5 in Math Prediction

 (2)

 (3)

 (4)

Set a compact display of the functions entering the metric

 (5)

When you load Physics, the prime is used for working with primed variables, so to use the prime to represent differentiation: turn ON the display of derivatives with respect to r using a prime

This shows the functionality of  and suppressed, due to the call to CompactDisplay above

 (6)

This shows first order derivatives with respect to r displayed with a prime, and derivatives with respect to t displayed with a dot

 (7)

Also for second order derivatives

 (8)

 (9)

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

Reference and formulation...

Hi

I imagine you know well about 4-velocity and comoving (or not) observers; by the way, have you seen the pages of the Physics:-ThreePlusOne package? (The line elements for Eulerian and Comoving observers are related by the metric.) Anyway, mainly because of the textbook references for formulating the problem, a good and easy presentation with good references at the end is the one in Wikipedia about Comoving and proper distances. Another good reference is the Physics Forums Insights about comoving coordinates and observers. ChatGPT also knows about these topics and corresponding formulas. You could use those references for formulating the problem in a worksheet/document, and point out what is precisely the formulation obstacle you see - something more specific that you wouldn't know how to do - and from there, we can recap the conversation here, after I see your worksheet and could understand where is that you need some clarification or help.

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

Evaluate -> Selection...

Hi
Not exactly, but what I use for this purpose: select the portion (for instance: Shift + Click the beginning; same for the end) Then, from the menu: Evaluate -> Selection, or use the corresponding shortcut (on a Mac is Command =)

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

No...

No, not in the current Maple. Of course, it could be re-coded such that it works differently, e.g. as you say, without displaying the options, but I don't see the rationale. Say in the example you gave: try without AllSolutions, and you see a different output, so displaying the option is relevant to understand what you see on the right-hand side. Also, it is not possible to predict, a priori, whether the options you pass produce a result different than without options.

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

trace = 0, or statements = false...

Where you write option trace, write instead: option trace = 0. If tracing an existing program, e.g. simplify, go with trace(simplify, statements = false). You may also be interested in the option depth = n. See ?trace.

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

Generally speaking: yes. Although a Dira...

Generally speaking: yes. Although a DiracConjugate command, relevant in connection with what you show in the worksheet you posted, is not there in Physics:-StandardModel at this moment (conjugate is used instead, but that misses the tensor representation of a spinor Psi  times Dgamma[0], and so there is no precise representation for the scalar DiracConjugate(Psi) * Psi. Incidentally, I am currently working on further developments for spinors. I will write again by the end of this week, showing the new functionality and answering your question accordingly.

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

Fixed in the Maplesoft Physics Updates v...

Update: Good catch; a fix for this problem is distributed to everyone in the Maplesoft Physics Updates v.1461 or newer. As usual, to install, open a worksheet/document and input Physics:-Version(latest) to install.

Previous answer: This looks like bogus behaviour, and I share your expectation @nm. I will give it a look later today and write here again.

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

Hi @Jean-Michel As far as I know, o...

Hi @Jean-Michel
As far as I know, on all platforms, including Windows (several Maple users), the following works fine:

1. Open Maple's GUI
2. Verify the value of libname: be sure you do not have some library interfering in a directory listed when you input libname
3. Input: Physics:-Version(latest);

If that doesn't work for you, item 2. is where I guess your problem could be. People from support@maplesoft.com should also be able to give you a hand if the standard procedure itemized above doesn't work for you for some more elusive reason.

Besides the above, I see in your post "failed to resolve filename C:\Maths\Maple2023\toolbox\2023". The directory where the MapleCloud packages get installed is the one you see entering cat(kernelopts(homedir), "Maple/Toolbox/2023"). So I'd suggest you verify that that directory exists. My understanding is that it suffices for cat(kernelopts(homedir), "Maple") to exist.

Finally, if for some reason that escapes me, the above doesn't help you, I would suggest you manually create the directory cat(kernelopts(homedir), "Maple/Toolbox/2023"), then let me know, and I'll send you a zip with the files you'd need to install in that directory, basically following this structure:

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

Expected output...

Hi

I only noticed this question today. Your worksheet misses the "expected output". Could you please write it explicitly? (I mean: not just a comment as "a gradient term"). If you give a reference to your expected output, that also helps.

Meantime, the functional derivative of an unknown function Phi(X) with regards to the metric g_[alpha, beta] can only give 0 since there is no indication that Phi(X) depends on the metric.

But let's move forward starting from what you were expecting.

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

Physics:-Substitute((rhs = lhs)(eq_Dx), ...

Physics:-Substitute is a new command in Maple 2023; you can use it directly for tricky substitutions like this one and get what you called eq_K1_m4_desired in one go. This is what you get:

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

Don't use geometrical coordinates to nam...

When you load Vectors, three systems of coordinates are understood: .

The system knows about the relationship between these three systems,

 (1)

Accordingly, the system also knows how to differentiate them

 (2)

(In Setup, it is called geometricdifferentiation, you can turn this knowledge OFF setting it to false to receive .)

If  has some functionality, say , that functionality propagates the same way we do with paper and pencil, so

 (3)

In your definition - already of , you use  so when differentiating with respect to x you will get as in (3),

 (4)

 (5)

 (6)

 (7)

In summary, you are using  with two different meanings: the cylindrical coordinate, related to the Cartesian coordinate x via  but also as an unknown function in . You resolve the issue disambiguating: for the unknown function entering the definition of , use a letter that is not already one of the global geometric coordinate (so none of ). For example

 (8)

 (9)

 (10)

 (11)

If you do this and still want to refer to the global geometrical cylindrical coordinate, use

 (12)

 (13)

Independent of the above, I note two other things: if your coordinates are , the timelike component of the metric is the 1st one; I recommend setting the signature accordingly using

 (14)

Then to see the components of a tensor you defined using equations as you did with  and , you can see their components without using TensorArray, via

 (15)

 (16)

 (17)

 (18)

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

@nm

You can, of course, add your approach to display any function the way you want, see ?latex,functions, or use any other scheme you imagine - you don't need to populate your question with that - it makes it long, more difficult to read.

Yet, I wanted to express to you that blanket-statements like

"[displaying mathematical functions the way they are displayed in textbooks, there exists notation for all of them, see the Digital Library of Mathematical Functions] makes it very hard when looking at the equations in latex and the pdf to know what these special functions are."

don't look to me appreciative of the diversity of opinions around. My opinion, for instance, is that I haven't seen one single textbook that displays the Bessel function of the first kind as BesselJ(n, z)

As the author of the FunctionAdvisor and latex, I intentionally coded the translation to use mathematical notation, which is standard for mathematical functions, as you see in any textbook, or the DLMF mentioned.

That said, being aware that some people got so familiar with computer algebra that they prefer the old computer notation, from the time there was no computer typesetting, you have several latex options. See ?latex, in Options, scan for "translation = ...", or also in the section for latex:-Settings check the meaning of userestrictedtypesetting, usespecialfunctionrules, usetypesettingcurrentsettings. I imagine the last one will suffice for your purpose, inferring from your question that you may have set your Maple to never display mathematical functions with mathematical notation.

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

Henon-Heiles is not integrable....

Mainly, this system is highly sensitive to the initial conditions; in simple terms, depending on the value of H and initial conditions, you could expect all numerical methods to drift.

I also suggest you open the page ?examples,poincare, where an analysis of the chaotic behaviour of the Henon-Heiles Hamiltonian is performed using the Poincare surface-of-section method, reflecting the progressive disintegration of the KAM surfaces (again, depending on the value you choose for the Hamiltonian and initial conditions). Conditions like the ones that produce the first out of six figures generated with DEtools:-poincare and shown on that page have better chances of preserving the value of H.

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

 1 2 3 4 5 6 7 Last Page 3 of 56
﻿