Carl Love

Carl Love

28055 Reputation

25 Badges

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

MaplePrimes Activity


These are replies submitted by Carl Love

@nm You are computing the (partial) derivatives of f with respect to x. What is wanted is the derivatives of y with respect to x, also known as the implicit derivatives.

@nm Numeric integration shows that 1/2/I/Pi is correct.

@nm Your specs are almost identical to mine except that I am using Windows 8. I doubt that that could account for the difference. I don't understand it, but I'll try playing with it some more.

Show me the result of the following: After the above, give the command op(rhs(%)).

@Hayno So, we have the line segment L joining the origin and some other point that we're calling the vector. Let's call the triangle T. Determing which of these is the goal:

  1. whether L intersects T?
  2. whether L lies completely inside T?
  3. whether the terminal point of L lies inside T?

2 and 3 are easy. 1 seems harder than just determing whether a line intersects the triangle.

 

@Hayno That doesn't make sense to me. What does it mean for a vector to intersect something? Give me a specific example of a vector intersecting something simple, like a square; and an example where the vector does not intersect the square. A vector is not a line, nor does it determine a specific line.

I am making this Reply primarily to promote your Question to the top of the Active stack, because I think that it is a good question and I hope that it gets seen. This is by far the most active day that I've ever seen on MaplePrimes, and the Active stack is getting pushed out of the immediately visible range (the top seven) every few hours.

In the meantime, read the help pages ?plots,surfdata and ?plots,listplot3d . These commands are the key to turning 3d point data into a surface plot.

How do you expect anyone to help given so little information? Can you provide a detailed specification of your original problem? I don't mean an upload of your C++ code.

@Hayno What is your ultimate goal here? Do you want a procedure which when given a line and a triangle decides whether the line intersects the triangle? Or do you want a procedure which when given a point and a triangle decides whether the point is inside the triangle?

@danlun You are asking me questions about how the GUI works, which I really don't know much about. Hopefully someone else can answer.

You can take any Maple output and see it with all the proper symbols by assigning that output to a variable, say Sol, and then giving the command lprint(Sol). If you intend to cut-and-paste the output in a form that is acceptable for later re-input, then you should use lprint.

What is the actual range of dates for your plot? That is, tell me the exact lowest date and the exact highest date. Whatever those dates are, they are being translated into the range 36907 - 36937. So I guess it's 31 days.

We can probably make the correction just by relabelling the tickmarks on your plot.

You have 16 equations with 11 unknowns. You are solving for only 8 of the unknowns. There are too many equations.

@adel-00 Of course it doesn't start at 1. You just divided a curve by its maximum. It should end at 1.

As for the speed, your function is very complicated. You may be able to speed it up some by changing sum to add.

@Alex Smith Indeed, this method is amazingly fast.

@Markiyan Hirnyk My comment was directed to the OP and I was referring to the code in the original question, not to your code.

@Preben Alsholm Note that the last procedure in an overload chain does not need option overload. So, your Unassign needs no subsop and can be simplified to

Unassign:= overload([
     proc(s::string) option overload; unassign(parse(s)) end proc,
     unassign
]):

Also, the versions that use parse will only work on top-level variables. Of course, that covers the vast majority of cases where one would use unassign. The regular unassign will work on local variables in procedures.

First 593 594 595 596 597 598 599 Last Page 595 of 709