30167 Reputation

29 Badges

18 years, 234 days
Ontario, Canada

Social Networks and Content at

MaplePrimes Activity

These are replies submitted by acer

Please don't spawn a separate Question thread for the same kind of query. Instead, please put your additional details or close followup example(s) here, in Comments/Replies.

Are you sure about your (plaintext) code, which you gave as, eg.:

find_vars_in_proc(f :: procedure, $)
  return {op(2, eval(f))};
end proc;

Also, there doesn't seem to be much merit in creating a procedure whose actions could just as easily be accomplished directly (without recourse to a procedure).

There are several syntax mistakes in your formulas. There significant details missing in your Question.

Most of the syntax mistake appear to be with respect to multiplication. For example, does gamma(nu-1) without any space of explicit multiplication sign mean gamma*(nu-1) ?

You should fix all those syntax mistakes first.

In Maple the lowercase gamma is a predefined constant, ie. evalf(gamma)=.5772156649. If instead you intend it as some other (free) parameter then you could use a different name instead.

You have not explained which names are the main plotting variables and which are the free (explorable) parameters.

You have not explained what kind of plot you want. Do you want a pair of 3-D surface plots for each of E[1] and E[2], as functions of say mu and nu? Or do you want a 2-D parametric plot of E[1] versus E[2] as a function of rho? Or do you want something else? There are several other reasonable possibilities, and it's not possible to know for certain which is your goal, unless you explain it clearly.

You should explain your intent here, clearly and explicitly.

@Carl Love It was fixed between Maple 2015.2 and Maple 2016.2.

@Arastas The trailing tilde makes the command map across entries of a Matrix, or list, etc, in an elementwise manner.

Some commands automatically get applied across elements of such structures, but most do not.

@etian2 It works for me. In 2D Input mode I type in,

  a := 5

but before I press <Enter> I select the "a", make it bold, then right-click to make it an atomic identifier. Then I press <Enter>.

Then in a new statement I type "a", repeat the process to make is bold and an atomic identifier. And after I press <Enter> the evaluated output shows as 5.


`#mi("a",fontweight = "bold")` := 5


`#mi("a",fontweight = "bold")`



Why do you think that your procedure is thread-safe, given that it calls signum?

I don't see signum listed on the Help page for Topic threadsafe.

I don't know whether that is part cause of your problem.

It does not make sense to say that you cannot upload a Maple 11 worksheet because "Too complex to insert the Maple 11 version because I have  a complicated function  and further on".

The integral you claimed to work in Maple 11 is short. It either works, by itself and simple, or it doesn't.

@Preben Alsholm I get the following:



    Maple 11.02, X86 64 LINUX, Nov 9 2007 Build ID 330022


fx:=exp(-sqrt(x^2 + c)):

integral:=int(fx,x) assuming positive;




int(fx,x=xl..xu,method = _DEFAULT) assuming (x^2+c)>0,x>0,c>0;

              2     1/2
  int(exp(-(x  + c)   ), x = xl .. xu, method = _DEFAULT)

int(fx,x=xl..xu) assuming (x^2+c)>0,x>0,c>0;

   int(exp(-(x^2+c)^(1/2)),x = xl .. xu)

It is poor etiquette and unhelpful to show only an image, instead of actual code to reproduce.

You could lprint the expression, and show us that as plaintext, or you could upload and attach a worksheet using the green up-arrow in the Mapleprimes editor.

Do you work with interface(typesetting) as extended, or standard? It can make a difference, for some workarounds.

@weidade37211 I've added a few faster approaches to my Question, now edited.

One key problem in your original was coding it so as to perform the symbolic integration  int(f(x),x=0..y)  where y is a nonnumeric symbolic name. Your 2D Input of the integral is pretty-printed in black in your original, denoting the active int command.

Using a restricted range can also help the numeric root-finder (ie. fsolve).

@nmacsai I also added an alternative workaround, using a wrapping call to plots:-display.

The approach of altering the Histogram procedure is easier only if you put the preamble code in an initialization file (which would be done just once). After that the Histogram command handles your example directly.

But if you don't mind the little extra bit of typing then the plots:-display approach is also an easy way to handle your example.

@mmcdara Your comment doesn't pertain to the OP's example. And so I removed the additional, concocted example to which you objected -- which was only a sidebar here and didn't demonstrate the OP's problem.

You might discuss the new format=stacked functionality elsewhere. That's not the main subject of this Question thread.

@Guimzo Have you considered describing exactly what you want?

First 66 67 68 69 70 71 72 Last Page 68 of 551