Carl Love

Carl Love

28050 Reputation

25 Badges

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

MaplePrimes Activity


These are replies submitted by Carl Love

@Alejandro Jakubi There's also codegen:-cost and SoftwareMetrics:-HalsteadMetrics.

However, the complexity that I am talking about is something inherent to the polynomial rather than a measure of how the polynomial is written.

Specifically, we have a set of n polynomials {P[k] $ k= 1..n} and a set of n distinct names {v[k] $ k= 1..n}. We have a set E of very large polynomials on which we want to perform the simplify with side relations

simplify(E, {P[k] = v[k] $ k= 1..n})

However, that takes way too much time (when n is, say, 10). I have discovered that it is sometimes possible to achieve the same effect as the above command nearly instantly by applying the simplifications one at a time, but only if they are applied in a certain order. I call that order "complexity" because it seems related to the usual notions of being less or more complex. But it is a partial order, not a total order.

@Alejandro Jakubi There's also codegen:-cost and SoftwareMetrics:-HalsteadMetrics.

However, the complexity that I am talking about is something inherent to the polynomial rather than a measure of how the polynomial is written.

Specifically, we have a set of n polynomials {P[k] $ k= 1..n} and a set of n distinct names {v[k] $ k= 1..n}. We have a set E of very large polynomials on which we want to perform the simplify with side relations

simplify(E, {P[k] = v[k] $ k= 1..n})

However, that takes way too much time (when n is, say, 10). I have discovered that it is sometimes possible to achieve the same effect as the above command nearly instantly by applying the simplifications one at a time, but only if they are applied in a certain order. I call that order "complexity" because it seems related to the usual notions of being less or more complex. But it is a partial order, not a total order.

@casperyc "Complexity", in the sense that I am using it, is a partial order of polynomials, but not a total order. I said that the last two "cannot be ranked by complexity"; I did not say that you had them in the wrong order, because there is no right or wrong order. They have to be processed as a pair.

I do not have a precise definition of complexity; it is a heuristic concept. If A has higher powers than B but is otherwise identical, then I say that A is more complex than B.

You wrote:

Also, my current method
sskappa( sstest(4,2) , kappa );
ssTwoStage(%,4);
take less than 20 sec.

I thought the goal was to use the substitutions sstest3(4,2) instead of sstest(4,2).

@casperyc "Complexity", in the sense that I am using it, is a partial order of polynomials, but not a total order. I said that the last two "cannot be ranked by complexity"; I did not say that you had them in the wrong order, because there is no right or wrong order. They have to be processed as a pair.

I do not have a precise definition of complexity; it is a heuristic concept. If A has higher powers than B but is otherwise identical, then I say that A is more complex than B.

You wrote:

Also, my current method
sskappa( sstest(4,2) , kappa );
ssTwoStage(%,4);
take less than 20 sec.

I thought the goal was to use the substitutions sstest3(4,2) instead of sstest(4,2).

Note that in this thread we are talking about Newton's method for multivariate problems. I realize that that is not clear from the text.

Note that in this thread we are talking about Newton's method for multivariate problems. I realize that that is not clear from the text.

In all three of your examples, the result that "we are happy with" is the same result as returned by add. So what's the point of a new command?

@abbeykabir I can't fully describe it, because I know so little about the Document Mode. I just know that it is difficult for me to execute. The cursor does not jump to the next section. The value Digits gets reset in every section. When you create a new file, a submenu pops up with options "Worksheet Mode" and "Document Mode".

@abbeykabir I can't fully describe it, because I know so little about the Document Mode. I just know that it is difficult for me to execute. The cursor does not jump to the next section. The value Digits gets reset in every section. When you create a new file, a submenu pops up with options "Worksheet Mode" and "Document Mode".

The indicator that Mac Dude is taking about is available as

Statistics:-NonlinearFit(..., output= [residualmeansquare, ...])

@PatrickT So sorry. Please try again. I updated the code, changing expr to _E inside the `if`. I had made a mistake while transcribing the code from Maple by hand rather than cutting and pasting.

@PatrickT So sorry. Please try again. I updated the code, changing expr to _E inside the `if`. I had made a mistake while transcribing the code from Maple by hand rather than cutting and pasting.

There really is no explicit student version. It's just the regular version at a lower price. So, if you have a link to download the regular version, use that. Check your email for the email from Maplesoft with your link and activation code.

If you can't reduce it to three substitutions, can you make it any smaller number than what you had in the original?

@abbeykabir 

eq||(1..2) means eq1,eq2. It is not much of an abbreviation when there are only two variables, but the notation can be used for any number. See ?|| .

Unrelated: Could you please create your worksheets (that you want me to read) in Worksheet mode instead of Docuemnt mode?

First 616 617 618 619 620 621 622 Last Page 618 of 709