acer

19087 Reputation

29 Badges

14 years, 282 days

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

It might help if you uploaded and attach your document, so that we could see the original expression if it is significantly different (and don't have to type in either). It would also let us determine which version you're using.

You called simplify(..., symbolic) on something. Does that mean that you don't care about the branch cuts, or are not aware of the possible ramifications of doing so?

Do you have any objection to using a command or calling sequence which is not offered directly by the context-panel?

On Windows the 64bit Maple version comes bundled with the LLVM compiler, and usually the Compiler:-Compile command works "out of the box". In other words, you usually don't have to run the Compiler:-Setup command.

Is there a particular reason why you wanted to switch the external compiler from LLVM to something else like the Microsoft compiler?

Did you have a problem running Compiler:-Compiler with the default external LLVM compiler? (Perhaps you mistakenly thought that you had to run Setup?) Or do you need to use the inmem=false option? Or some other reason?

note: I changed your Post into a Question.

@Carl Love I read that part and had the same question, and I was planning to submit a bug report.

@Carl Love The instructions to find the maximum and saddle-point are weird. It suggests rotating the 3D plot, presumably so that the x- and y-values could be approximately read off of the axis tickmarks.

It seems strange to me that students might be studying extrema and saddle-points and not be looking at computing the stationary points' approximations.

@Carl Love I was only looking withing a specific range on purpose. I had hoped that the student would at least investigate a little.

The question only asks for a (one) maximum and a (one) saddle-point, as I understand it.

 

@Scot Gould StringTools:-StringBuffer constructs a module, and is implemented in an OO manner. But it is not an Object (in the sense that its return value is not of type object, or in the technical Object sense which I believe was part of the OP's original queries.) It has no static exports and each instance carries its own copy of its exports.

That is in contrast to the Today constructor of the Calendar package.

[edit] Just to make this more confusing, there is also an example StringBuffer on the objects,methods Help page, and that is implemented with an Object constructor.

@Joe Riel Thanks, Joe. I wasn't paying attention and completely misunderstood the purpose of the example. My Answer clearly doesn't satisfy the quoted request.

Perhaps I should simply delete the answer.

[edit] I will let it stand, and instead quote from the object,methods Help page:

    Object Must Be Passed into Methods
    If you declare a method that needs to access the contents of
    an object, that object must be passed into the method as an
    argument.  This is in contrast to some object oriented languages
    which allow access to the contents of an object associated with
    the current invocation, either through direct access to the
    object's members or through a self variable.  The method will
    have access to the local variables of any object of the same
    class that the method was declared in.

@janhardo The idea of an interval of convergence was mentioned before. And this allows your last example to succeed.

value(Sum(x^(n - 1), n = 1 .. infinity)) assuming x>-1, x<1;

                                1
                            - -----
                              x - 1

You could also use active sum(...) instead of value(Sum(...)). And you could use abs(x)<1 instead of the pair x>-1, x<1.

What have you managed to do so far, with this?

@janhardo 

restart;
R := convert(ln(1+x),FPS):
value(R) assuming x>-1, x<1;
                             ln(1 + x)

sum(op(R), formal);
                             ln(1 + x)

[edit] The series does not converge for all x. The `sum` command is being careful about what it returns here. (It doesn't even converge for all real x. And judging by the context of this and earlier textbook questions this is not about complex numbers.)

You should show us what you've done so far, or describe with which details you got stuck, etc.

@mmcdara Actually, the name `` gets used reasonably often as an easy wrapping mechanism to avoid automatic simplification, especially for pretty-printing effects.

It was more common before InertForm was introduced, but it is still not very rare.

There are lots of Answers on this very forum, where it has been so used.

It is also what the ifactor command uses.

lprint( ifactor(114) );

``(2)*``(3)*``(19)

The output of ifactor includes unevaluated calls to it, but a subsequent evaluation would reveal whatever it have been clobbered with.

Another choice of dummy name would be better, IMO.

@Liiiiz Your uploaded attachment shows combined display of whatever was assigned to p61w and p62w. But the worksheet does not assign to p61w, so as uploaded it does not produce the same results as the saved sheet.

Could you adjust that?

You should show us what lambda61 is.

You can upload and attach a worksheet using the green up-arrow in the Mapleprimes editor.

 

@macubear I don't know what you mean by the acronym MWE, sorry.

A bit more on terminology. You originally described something like common memory access, so I answered with something that involves combining python/C with the Maple kernel process in order to get a direct access to memory.

But you also used the terms "output" and "pipe", which seems more like a description of i/o between processes (...and in which context sockets seem to make more sense).

So I'm not really sure which you prefer (i/o or direct memory access) and what are the precise motivations.

In Maple a datatype=float[8] rtable (Array, Vector, Matrix) stores its data as double precision floats in a contiguous block of memory, so access can be direct and efficient. But OpenMaple also has facilities for conversion of other scalar numeric types (ie. back and forth between Maple and C, say).

But I know little about "direct" python<->C interaction, or C "extension" to python.

4 5 6 7 8 9 10 Last Page 6 of 424