Carl Love

Carl Love

28015 Reputation

25 Badges

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

MaplePrimes Activity


These are replies submitted by Carl Love

It doesn't have a Taylor series for epsilon=0 because sqrt(epsilon) isn't differentiable at 0. You could use another expansion point though.

@pallav The error message gets truncated by being put in the title. Please transcribe the complete error message into the body of a message.

Also, since it worked for me in Maple 2022.1, I ask What version are you using?

@JAMET Don't make it seem as if the information that I gave you before was incorrect by saying that you still have errors. The truth is that you added the solve command, so you have new errors related to a new command that wasn't present for the question that I answered. My solution worked for the question as it was asked.

I'm having difficulty with combining assumptions (in assuming form) with the geometry package and then using solve. The variable a becomes localized in the equations, and solve sees two different variables a. It's much easier to not use geometry. Then assumptions aren't needed at all.

Since you have two equations and three variables (x, y, a), you need to tell solve to solve for {x, y} by giving {x, y} as the second argument.

restart:
b:= a*(1/2 + 1/6*sqrt(45 - 24*sqrt(3)))^2:
r:= b*sqrt(b)/(sqrt(a + b) + sqrt(a)):
E:= x^2/a^2 + y^2/b^2 = 1:
C3:= (x - (1+sqrt(3))*r)^2 + (y+r)^2 = r^2:
sol:= solve((simplify@numer@(lhs-rhs))~({E, C3}) union ({x, -y, a} >~ 0), {x, y}):
sol1:= simplify(sol) assuming a>0:
PP:= eval([x,y], sol1[]); 


 

@JAMET Use the command 

assume(a > 0);

somewhere before (the exact placement doesn't matter) the ellipse command.

@tomleslie My Reply was directed to the OP to answer their immediately preceding "Why...?" I wasn't criticizing your Answer, and I think that your use of fsolve was totally appropriate.

@JAMET PP was created with results from fsolve. Thus its coordinates are decimal numbers (aka "floats"). But ic1 is created with exact arithmetic. No floats would ever exactly satisfy its equation.

You have been editing this Question to the point of unanswerability. Stop. Add material rather than removing it.

First, this is a Question, not a Post. Don't put it in the Post section.

Second, your original Question was about a BVP with a delay. Maple doesn't handle those, hence the Reply that you received. Your removal of the original equations has made that Reply seem out of place. That's not fair. In other words, it's not fair to change your Question to such an extent that it makes someone else's response---which was originally relevant---seem irrelevant or like a non sequitur.

Third, you next Question removed the delay, but now you got the error "initial Newton iteration not converging." This is a common problem with BVPs, especially those of the boundary-layer variety, as yours is. That Question had enough information to be Answered; all the equations were there.

Finally, in its current state, your Question has no equations and no attached worksheet. As such, it's nearly impossible to Answer. Yes, I could direct you to the help page on "continuation parameters" for BVPs, which is usually the first step to solving this convergence error, but there are usually a few tricky steps to it.

@Steven_Huang At this point, your Question has no attached file, nor any inline code or equations.

@vs140580 Here is a summary of my understanding of your new "equality rule" (perhaps better called an "equivalence relation") that you want to implement, which I am recalling from memory of a single reading of the PDF that was  attached to your recently deleted Question. Please let me know if this is correct.

  1. Given: Matrices A and B. If one has fewer columns than the other, then that one is padded on the right with columns of zeroes. The number of rows of the matrices is irrelevant (could be the same or different).
     
  2. Given rows R1 of A and R2 of B, the rows are considered to be equivalent if and only if R1[2..-2] is a cyclic permutation of R2[2..-2]; the first and last entries of the rows are irrelevant.

    I am unsure about the following; please clarify: The permutation can be any cyclic permutation; it need not be a cyclic permutation of a single step. For example, R1 = [0, 1, 2, 3, 4, 0] and R2 = [0, 3, 4, 1, 2, 0] are equivalent.
     
  3. As before, A and are to be considered equivalent if and only if every row of A is equivalent to some row of B   AND   every row of B is equivalent to some row of A.
     
  4. As before, you'd also like a set of pairs of integers (a,b) such that A[a] is equivalent to B[b]. (Note that when a matrix is given a single index, that's a row selection.) Thus, we are essentially constructing a bipartite graph matching the rows of A to those of B. The equivalence of A and is the same as that graph having no isolated (i.e., degree-0) vertices.

Considering this and several of your previous Questions, it seems that you have numerous problems that fit the outline (1--4) given above with the only difference being point 2---the conditions that determine row equivalence. Is that correct?

@vs140580 If you wanted the row numbers, then you should've said so in the first place. I need to go to bed now. I'll work on the row numbers when I wake up. But, it'll be much much more complicated than the code I already gave.

@vs140580 
It returns true if and only if

  • for every row R1 of A there exists a row R2 of such that R1 "equals" R2 using the definition of equality of rows that you gave

        AND

  • for every row R2 of B there exists a row R1 of A such that R1 "equals" R2 using the definition of equality of rows that you gave;

otherwise, it returns false.  

@angelisasking I don't know HPM well enough to provide much help. I looked at your worksheet, and I wonder why you think that there's something wrong with it? The differences seem quite small compared to the magnitudes of the functions being approximated. In other words, what we call the relative error (|true value minus approximate value|/|true value|) is small, especially considering that you're using series of very low degree (4).

On the other hand, perhaps there is something wrong with your worksheet that would be obvious to someone who knows HPM which I missed.

A reasonable test of the accuracy would be to increase the number of terms in the series and see if the error gets smaller.

@MANUTTM What do the independent variables ySr, and g represent? I'm puzzled by the recent appearance of g, which seems to be an independent variable of D (demand) only? Do you have a way to compute D(g, Sr) for any feasible g and Sr

@wswain You wrote:

  • I am not sure why when I tried to change the execution group to Maple Input (with F5 and by the pull down) and it kept responding as in 2-D mode even though it said "maple input" in the bar.

I've noticed that myself in Maple 2022. I don't know whether it's a bug or it's supposed to work that way; nor do I know when, if ever, that changed.

@acer Thank you. When I checked, it was listed (with dead links) in Recent Posts and Active Conversations, but not in Recent Questions. It seems to take an inordinate amount of time for that update to happen.

First 81 82 83 84 85 86 87 Last Page 83 of 708