Carl Love

Carl Love

28025 Reputation

25 Badges

12 years, 311 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@radaar Sure, you could use map for this. In this case, I thought seq looked better aesthetically.

@Ali Hassani This is not a limitation of Maple. As far as I know, the parallel algorithms simply don't exist, but I haven't researched that. If you can find an appropriate algorithm, I will help to implement it in Maple.

There is a Maple-specifc parallelism limitation, but it doesn't apply to the situation that you're describing. The limitation is that many Maple commands were originally written without parallel programming in mind; they use global variables in ways that are incompatible with shared-memory parallelism, and it would require a massive effort to rewrite them. This does not mean that those commands can't be used in parallel. Rather, it means that they can't effectively be used for shared-memory parallelism such as that provided by the Threads package.

I deleted the Question that you asked a few minutes ago because it's essentially a duplicate of this one. Also, these Questions are about Maple alone; don't put it in other categories such as MaplePrimes and MapleLearn. 

Maple's laplace command works primarily by table lookup rather than by integration. Perhaps the problems that you're having show why it was done that way. It's possible for a user to add to the tables for any of the transforms in inttrans. See help page
?inttrans,addtable. 

@pengcheng Xue It's not strange at all; I've seen it hundreds of times. The convergence of Newton's method is sensitive to initial conditions. This is even true (and easy to illustrate graphically) when using it to solve a single algebraic equation in one dimension.

@MapleEnthusiast This is such a trivial modification to my Answer above that I must insist (for pedagogical reasons) that you try to do it yourself. If you've failed after repeated attempts, ask again and I'll show you.

Hint: seqadd, and mul are essentially the same command with the same syntax. The only thing that changes is the associative operator used: add is addition, mul is multiplication, and seq is concatenation with a comma.

In my opinion, I'd modify acer's "Using concatenated names in procedures is poor programming practice" to "Using concatenated names as variables in procedures is poor programming practice". Perhaps acer will agree with this modification. Names are often constructed essentially as strings to achieve a certain displayed effect. It's often impossible to make these local due to the need for concatenation, and there's often no other way to get the displayed effect.

@ecterrab In your Reply to Ambrozy above, you included two examples in boxes. Those boxes appear in my browser as totally black rectangles with no writing. My browser is Google Chrome, and I tried viewing it on both Windows 10 and Android. Even if I use my Moderator power to view your Reply in the editor, they still appear like that.

Your attached worksheet does not show an example of it "not working for derivatives". Please update the worksheet.

Nonetheless, I do understand what the problem is, and I'm trying to come up with a solution. However, this is substantially more complicated than doing explicit functions.

@Joe Riel Oops, I had TransferFunction in my worksheet, not PrintSystem. I copy-and-pasted the wrong line!

@9009134 You can start by reading the help pages that come with the package. Let me know if you can access the help pages. (Help pages of third-party packages are accessed exactly the same way as regular Maple help pages.) On the main page ?DirectSearch there is a section labeled "Multi-objective optimization". Note that fitting model parameters to a finite set of data points is the same thing as minimizing the residuals using the parameters as decision variables. The most well known way is "least squares"---minimizing the sum of the squares of the residuals---but the DirectSearch package offers many alternatives to this (see ?DirectSearch,DataFit for a table listing those alternatives).

In the section "Multi-objective optimization", there are seven commands listed:

Minimax                 Weighted Minimax (Maximin) method
CompromiseProgramming   Compromise Programming method
WeightedSum             Weighted Sum method
BoundedObjective        Bounded Objective Function method
ModifiedTchebycheff     Modified Tchebycheff method
WeightedProduct         Weighted Product method
ExponentialWeightedSum  Exponential Weighted Sum method

I do not know much more about this subject.

@Carl Love I tested the above procedure in Windows 10 Home. I hope that others will test other OSs. Maple 2020 is required for the FileTools:-Walk command.

@Lenny I'd like to see that expression both before and after you converted it to a string.

@acer Yes, of course, a posted worksheet is better. I said what I said because I suspected that there was a simple fix that I didn't know the details of. And, it's really annoying when people post (through no fault of their own) these incredibly mangled 1D transcriptions of their code.

@9009134 The DirectSearch package (you'll need to download it, but it's free) does multi-objective fits and can use penalty methods.

@sand15 When the constraints are polynomial, simplify with side relations works much better than algsubs, in my opinion. For one thing, it processes the entire set of constraints as a whole.

@Ali Hassani I don't know any method to solve a set of equations in parallel. If you can find any method, I'd help implement it in Maple.

First 158 159 160 161 162 163 164 Last Page 160 of 708