acer

32313 Reputation

29 Badges

19 years, 313 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@AHSAN Stop assigning to the names k,Q,Br, etc.

Also, your F is an expression and not an operator or procedure, so it makes no sense when you apply that to arguments.

my_try_ac.mw

I suggest that you really try to understand why and how these mistakes were making it go wrong.

@Muhammad Usman You could include or exclude any of the following:
 - the colored density-plot
 - the black contours
 - those same contours, but colored to match the density-plot
 - the colored legend items

See attached,

Usman_3.mw

Also, as before, you can also customize thicknesses and overall size.

@jalal Try to zip up your .maple workbook file, to use it as an uploaded attachment on this site.

@MadPenguin I launch Maple's GUI from a console window (xterm) in Linux.

Then I look at the error messages that the Java GUI sends to that console when it tries to open a file with corrupted XML.

Some years ago there were a whole variety of flavours of such XML file corruption. In Maple 2022 it's down to mostly one common kind of malformed "Equation" element, which can simply be removed. The error message indicates the text-file line-number location of the first one.

I correct the broken XML element using a text editor, in my case I use vi. Fortunately I happen to know quite a bit about how Maple documents use that format, although often the fixes are common sense.

Then I close the opened document tab in the Maple GUI (which wasn't fixed properly by the GUI -- a major point here...).

Then I re-open it, and repeat as necessary.

Lastly (and this is sometimes important) I make sure to Save the ostensibly hand-fixed file, using the same Maple version. In rare occasions in the past this revealed further issues to be fixed.

When I can round-trip Open->Save->Re-open using the member's Maple version then I consider it done.

The whole process usually takes me about 5-15 minutes. Sometimes I get a vote-up; sometimes not.

In many cases the hand recovery gets much more content recovered than does the Maple GUI (up until Maple 2022, at least).

Hope that helps.

Please add your close followup examples on this topic as Replies/Comments to this Question thread, instead of in a wholly separate, new Question thread.

@KIRAN SAJJAN The values of Phid and Phid1 as eta approaches zero appear to be the same for the four different RVals parameter values. Their slopes (derivative w.r.t. eta) differ near eta=0. The plots appear to confirm that.

error_in_table_value_1_ac.mw

@2cUniverse Please correct (or make more "exact") your Question here, rather than correcting it in a wholly new Question thread,

Please don't spawn another wholly duplicate Question thread for this.

Such duplicate threads can be flagged as such and may be deleted.

If you have followup queries or additional details on this same topic please add them here instead.

@Hullzie16 It would be more helpful if you were to show what you're actually trying to accomplish when you first post the Question.

@DJJerome1976 Interpreting such Matrix elements as columns (of A) is not uncommon.

restart;

with(LinearAlgebra,LinearSolve):

 

S:={<<2,3>|<4,5>>, <<1,-1>|<1,0>>,
    <<0,-1>|<1,1>>, <<2,2>|<-3,5>>};

{Matrix(2, 2, {(1, 1) = 0, (1, 2) = 1, (2, 1) = -1, (2, 2) = 1}), Matrix(2, 2, {(1, 1) = 1, (1, 2) = 1, (2, 1) = -1, (2, 2) = 0}), Matrix(2, 2, {(1, 1) = 2, (1, 2) = -3, (2, 1) = 2, (2, 2) = 5}), Matrix(2, 2, {(1, 1) = 2, (1, 2) = 4, (2, 1) = 3, (2, 2) = 5})}

f:=<<0,3>|<7,-4>>

Matrix(2, 2, {(1, 1) = 0, (1, 2) = 7, (2, 1) = 3, (2, 2) = -4})

A:=`<|>`(seq(convert(S[i],Vector),i=1..nops(S)));

Matrix(4, 4, {(1, 1) = 0, (1, 2) = 1, (1, 3) = 2, (1, 4) = 2, (2, 1) = -1, (2, 2) = -1, (2, 3) = 2, (2, 4) = 3, (3, 1) = 1, (3, 2) = 1, (3, 3) = -3, (3, 4) = 4, (4, 1) = 1, (4, 2) = 0, (4, 3) = 5, (4, 4) = 5})

B:=convert(f,Vector);

Vector(4, {(1) = 0, (2) = 3, (3) = 7, (4) = -4})

X:=LinearSolve(A,B);

Vector(4, {(1) = -202/73, (2) = 36/73, (3) = -107/73, (4) = 89/73})

add(X[i]*S[i], i=1..nops(S));  # same as f

Matrix(2, 2, {(1, 1) = 0, (1, 2) = 7, (2, 1) = 3, (2, 2) = -4})

Download LS_ex3.mw

Personally, I'd rather make S into a list, up front, rather than a set. There are a few weird scenarios where mapping the conversion across a set can get a mismatch in the ordering.

Unless you have some special reason to make this all super efficient (for huge dimensions, repeats, etc) then I'd say that clarity is not the worst goal.

@RezaZanjirani Do you mean a logical conjunction or a disjunction, of more than one inequality? What ineqialities? Please just write it out here, explicitly.

Are you saying that you want a superposition of up to six regions, where each of the three is either greatest or least?

ps. You've posted quite a few Questions involving these functions. I wrote before that I suspect that their overall approach might possibly be re-done. It's even possible that the boundaries of the inequality regions might be determined symbolically. Have you looked into that? 

Does the problem occur if the first thing you do in the session is remove the location of the Physics update .mla from libname (or otherwise disable/shunt-aside)?

I don't see the problem in my Maple 2023.0, without the Physics update installed.

I'm just trying to nail down whether it's a 2023.1 thing, or a Physics thing.  Thanks.

Please upload a short self-contained example that reproduces and demonstrates the issue.

@2cUniverse Yes, densityplot is both hard on the GUI (sluggish behavior) as well as problematic wrt numeric aberations here.

That's why I wrote the code using ImageTools, in the link I gave above. Being faster was a bonus. (And I believe it could be even faster if parallelized.) But the motivating benefit was better results and Maple GUI behaviour.

I mentioned the densityplot and complexplot3d commands above only as inferior alternative.

@Scot Gould GAMMA is not what helps here. It's happenstance. Any other `convert` call that happens to accept a float argument would also succeed in exactly the same way.

The fact that GAMMA also relates (otherwise) to factorial would make it unnecessarily misleading to recommend it to your colleague for this situation. No actual conversion takes place here.

As for the "operator form" calling sequence, I too am a fan. It's often my first choice if I just need to avoid so-called "premature evaluation", when invoking with a function call.

First 58 59 60 61 62 63 64 Last Page 60 of 591