acer

32647 Reputation

29 Badges

20 years, 57 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@Pepini This is looking more like a roundabout approach. Rather than have us guess at a projection, it might be better if you were to show the formulaic details of how those images were constructed.

What is the coordinate system, how does their shading depend on that precisely, and how does that correspond to the sphere?

@Djlogan2 The Maple GUI has some neat features as a convenient front end to (usually simpler) computations.

But for well structured work using the Maple programming language as the basis for workflow is far superior to User Interface effects. The full power of the programming language raises the product's power far above what can be done using mainly GUI effects or a fixed set of context-sensitive operations. I recommend the Programming Guide, or the inexpensive and decent Understanding Maple.

@Djlogan2 There are a variety of alternatives, if you throw Equation labels and context-panel operations into the mix.

You can also cook up some alternative syntax. For example using a customized infix operator alongside some Equation Label references (the Equation Labels are shown more nicely, right-justified in the actual Maple GUI),

restart;

`&/`:=ee->eval(ee,[_rest]):


The procedure above provides an alternative syntax for
doing the so-called 2-argument eval calls.

 

Due to the precendence rules, you may still need brackets.

a = 3*x+2*y;

a = 3*x+2*y

(1)

(1) &/ ( x=5, y=1 )

a = 17

(2)

( 4*a-2*b ) &/ (1)

12*x+8*y-2*b

(3)

(3) &/ ( x=5, y=1 )

68-2*b

(4)

 

Download shrtct_eval.mw

That helper routine's name starts with an ampersand (&), which is why it allows for an infix calling sequence. You might name it something else short that you prefer, eg. `&e`

@Carl Love I was confident that I wasn't telling you anything new. Sorry, I could have made it more clear that I was just adding a comment for the OP or other readership.

@ogunmiloro How precisely is that latest attachment different from the original? It looks as if you have accidentallu uploaded the original file again, unchanged.

The proc wrapper approach can work with an `add` call. That can make sense directly.

The `Sum` call conversion can make some sense with an implicit `evalf` acting. (I'm not a huge fan of that kind of thing.)

I don't see why that call to Maple's inert symbolic Sum should translate to that Matlab sum call. They don't directly do the same computation.

@ogunmiloro I have doubts about the correctness of what you write.

You should correct the formulas in a revised worksheet and attach it as followup.

I don't think that it should take four or five postings for you to ask your question with the details present and correct.

@ogunmiloro 

What do you mean by the numerator GAMMA in the terms like

   GAMMA/GAMMA(tau+1)

?

@ogunmiloro Apart from your statement that you want 2D contour plots, I don't see how your latest response answers my questions.

Your sheet already mentioned that tau ranges from 0.2 to 1.0 in query (2). There's no merit in your repeating that. But you still haven't told use what value gamma[1] should take for that plot.

Your sheet already mentioned that gamma[1] ranges from 0.2 to 1.0 in query (3). There's no merit in your repeating that. But you still haven't told use what value tau should take for that plot.

What do you mean by  GAMMA/GAMMA(tau+1)  ?

You have GAMMA used in function calls (ok), but also as a standalone name. What is the numerator supposed to mean, for example in this subexpression:

   GAMMA/GAMMA(tau+1)

?

Also, all three cases's descriptions are incomplete, since numeric values for the remaining parameters are not specified. In case (1) what are values for tau and gamma[1]? In case (2) what is the value of gamma[1]? In case (3) what is the value of tau?

You have also failed to mention what kinds of plots you want? 2D contour plots? 3D contour plots? Something else?

Yes, it's been broken for a few days now.

The flag mechanism also seems broken. Tag deletion also seems broken.

 

@Ali2020 How does your followup comment's code produce the original target,

    [-12,-23,-34,87,18,98,27,93,45,68 ]

@Kitonum You suggested  [seq(rhs~(t)[],t=[a])]  but that produces an incorrect result.

a := {x = -12, y = -23}, {x = -34, y = 87},
     {x = 18, y = 98}, {x = 27, y = 93},
     {x = 45, y = 68}:

[seq(rhs~(t)[],t=[a])];

     [-23, -12, -34, 87, 18, 98, 27, 93, 45, 68]

Here's one possible correction,

[seq(rhs~([t[]])[],t=[a])];

     [-12, -23, -34, 87, 18, 98, 27, 93, 45, 68]

This approach does not generalize so conveniently to modified requests like y,x ordering, etc.

@mmcdara I'll add more later, but for now I'll mention that Embedded Components can work in the Maple Cloud (ie. via web browser) as well as the free MaplePlayer. Maplets can do neither of those. 

First 140 141 142 143 144 145 146 Last Page 142 of 597