Carl Love

Carl Love

28055 Reputation

25 Badges

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

MaplePrimes Activity


These are replies submitted by Carl Love

You can upload a worksheet. The error pertains to the inline display of the worksheet, not to its uploading.

Both the Answers by Rouben and by Tom assume that you're trying to solve equation p for u and then verify that solution by substitution and simplification to 0. However, my reading of your worksheet suggests that you want to substitute an expression for u into and solve the resulting equation for q (and verify). So, which is it?

My code is for your example only. Like Kitonum, I don't understand what you want for the general case. Also, it's not clear whether you want to construct the sets (list their elements) or define them abstractly (as in a membership test).

@vv The simplify(..., symbolic) is only applied to the limits of integration (see the second argument of the subsindets), so it doesn't touch sqrt(z^2). Using that f, the integral returns 2*I*Pi (after using evalf).

@Kitonum An easy generalization to any number of dimensions, with the input and output both being vectors:

PV:= proc(v::Vector) 
local x:= `tools/genglobal`(:-_x), pv:= Vector(upperbound(v), symbol= x);
    eval(pv, solve(v.pv, {seq(pv)}))
end proc: 

Or, a simpler version, allowing the user to specify the free global stem:

PV:= proc(v::Vector, free::name= :-_X) 
local pv:= Vector(upperbound(v), symbol= free);
    eval(pv, solve(v.pv, {seq(pv)}))
end proc: 

@vv Thanks for finding that. Here's a correction:

f:= z-> z/abs(z)^2:  r:= t-> exp(I*t):
IntegrationTools:-Change(Int(f(z), z= r(-%Pi)..r(%Pi)), z= r(t));
value(subsindets(%, ln(exp(anything)), simplify, symbolic));

The above returns 0. Changing f to z-> 1/z, it returns 2*I*Pi.

@Christopher2222 I agree with your policy regarding voting. For almost any legible and legitimate math/Maple Question, if the author has reputation < 11, I give it a vote up. The 11 is the cut-off below which the Question gets the red spam flag.

I'm curious: Is "Maple Companion User" a generic username by which Questions get posted directly from the Maple Companion app? If so, I think it's a bad method: There should be a better way to distinguish users.

I'll say again: The product pull-down list for Questions needs to include Maple Companion.

Of the numerous ways to correct your procedure, this is my favorite:

b:= proc(x::nonnegative)
local n:= trunc(x);
    procname(n):= `if`(n < 2, n, (thisproc(n-1) + thisproc(n-2))/2)
end proc:

 

And multiple matched pairs of (column) vectors can be plotted with 

plot([<X1|Y1>, <X2|Y2>])

There's no limit on how many pairs can be put in the [...].

@nm To upload an animation:

1. Right click on it for the context menu.
2. Export As => GIF
3. Use the green uparrow to to upload it just like you would upload a worksheet.

@Rouben Rostamian  Oh, I forgot to say that the procedure is meant to be run in a separate worksheet, kept in the background.

I don't understand what you mean by "power series of epsilon". I do understand power series of t, power series of x, or perhaps even a joint and power series. 

I think that using a Maple procedure such as below is a lot easier than watching an external file monitor such as fswatch.

CheckForNewData:= proc(
    fn::string, #filename
    {
        start::posint:= FileTools:-ModificationTime(fn),
        sleep::positive:= 2 #seconds
    }
)
    while FileTools:-ModificationTime(fn) <= start do 
        Threads:-Sleep(sleep)
    od;
    return "File touched."
end proc
:

 

@mmcdara "Reading between the lines" of the Question, I suspect that the OP is waiting for new data to appear in a file so that it can be processed by Maple. I don't think that they are actually interested in a file comparison such as is provided by diff or similar OS commands.

First 206 207 208 209 210 211 212 Last Page 208 of 709