Scott03

774 Reputation

10 Badges

19 years, 327 days

MaplePrimes Activity


These are answers submitted by Scott03

I am not sure what the error means, but it is possible that the reason would become clear to other Maple users on this site if you would post the worksheet that is producing this error. That way they can help you with your situation rather than giving a general answer. Scott
GlobalOptimization returned the following: [0., [x = 1.00000023841857910, y = -1.00000023841857910, A = 1.00000023841857910, B = -1.00000023841857910, C = -1.00000023841857910, D = 1.00000023841857910, E = -1.00000023841857910, F = 1.00000023841857910]] These are the values of x,y,A,B,C,D,E,F that will give G as 0. But this is only one of the solutions. It appears that any number that is x = A = D = F = -y = -B = -C = -E may be solutions. Scott
If you have the Global Optimization toolbox that is an add-on for Maple, you could do something like the following: eq1 := signum((-x+A)*B+(y+C)*D) = -1; GlobalOptimization[GlobalSolve](abs(x*E-y*F), {eq1}, x = -10 .. 10, y = -10 .. 10, A = -10 .. 10, B = -10 .. 10, C = -10 .. 10, D = -10 .. 10, E = -10 .. 10, F = -10 .. 10); This will run through and find you the value where G=0 which would be the minimum of abs(G). It is possible that you can know that this is the minimum and you could possible use one of the solve commands to find the values also (but I haven't found the correct call for this yet). Scott
Use the taylor command with the third input as the number 10. As indicated in the help page for taylor: "If you do not specify the expansion point, a, the Taylor expansion at 0 is returned. This is known as the Maclaurin expansion." So you would call something like taylor(f(x), x, 10); where f(x) is your function. Scott
When calling Maple from Excel, you are making use of the Maple-Excel plugin. I don't think you can utilize this plugin from within VB code. What you could try is to call OpenMaple from the VB code. There are some examples of this found in the Maple folder. For example, on Windows it would be located in the following folder C:\Program Files\Maple 11\samples\OpenMaple\msvb Scott
You can use the interval for the fsolve to find both of these roots h:=x->piecewise(x <= 5, x-1, x <= 7, 4, x <= 15, 18-2*x); h1:=x->piecewise(x <= 3, -3/2+(3/2)*x, x <= 5, 3, x <= 15, 21/2-(3/2)*x); fsolve(h(x)-h1(x),x); 1 fsolve(h(x)-h1(x),x,1..05..10); 4.000000000 Usually I would use the avoid feature but for some reason it won't work with this piecewise functions. Scott
You could try something like the following: with(inttrans): f:=x->x^2; fouriercos(f(x),x,t); fouriersin(f(x),x,t); I don't know how to deal with the range. It has been a while since I dealt with Fourier Series. Scott
If you have Maple 11, you can try the option of trace in the animate command and you can have a few of the plots remain at the end of the animation. You can see this with plots:-animate(plot,[k*x^2-k*x^4, x=-10..10],k=-5..5, trace=4); Scott
If you try the SetCellFormula function, you can set the values of specified cells to what you want. For example: beta_N := proc () local k, beta, N_bar, Eq15, Eq16, i; CreateSpreadsheet(Eq15_16); i := 1; for k from .10 by 0.2e-1 to .5 do Eq15 := -2*k*cos(beta) = 1/sqrt(N_bar); Eq16 := 4*EllipticE(k)-2*EllipticE(sin(beta), k)-2*EllipticK(k)+EllipticF(sin(beta), k) = tan(beta)*sqrt(1-k^2*sin(beta)^2); SetCellFormula(Eq15_16, i, 1, fsolve({Eq16, Eq15}, {beta = 4 .. 5, N_bar = 0 .. 1000})); i := i+1: end do: end proc: Scott
By looking at this page on Wikipedia you will find the equation for the Annuity when it comes due. The one thing you will have to notice is that the APR is an annual interest rate while the amount being placed into the annuity is monthly. Therefore, it is easiest to just convert the APR into the rate that would be compounded monthly. Since according to wikipedia the equation to calculate the effective interest rate is r=(1+i/n)^n - 1 then you would need i=n*((r+1)^(1/n) - 1) to figure out the monthly interest rate i= 12 * ((0.6+1)^(1/12) -1 Once you have done this, just use the annuity equation from the page above. To see how much you saved, just subtract the amount you paid over the 10 years from the amount the annuity returned. Scott
I forgot to change my input format before hitting the "Post comment" button. I have now done this. Scott
I believe what is happening is that the value for the step for the for statement is set at the point of entry of the for statement. This can be seen by the following code >for i by p to 3 do p := i: print(i, p); end do; for i by p to 5 do p := i: print(i, p); end do; To do what you are looking for, I would change your code that you are calling to the following: > p := 1; i := 0; > while i < 100 do i := i+p: A := evalf(F(p)): if A < 1 then p := (1/2)*p end if; if A > 1 then p := 2*p end if; print(A, i, p); end do; This way, the i will be incremented by the current value of p and not the value of p when the loop was started. Scott
If you calculate the effective interest rate for both you will get >(1+0.06/1)^1 -1 0.6 >(1+0.0585/52)^52 -1 0.060210124 You will find that the 5.85% compounded weekly is best. Looking at the wiki page for effective interest rate it states that the two differences between the APR and this are: "first, the effective interest rate generally does not incorporate one-time charges such as front-end fees or other "unusual" features; second, the effective interest rate is (generally) not a term defined by legal or regulatory authorities (as annual percentage rate is in many jurisdictions)." Since the question doesn't include what the one-time charge would be and there are no legal elements to this question, I don't see why the effective interest rate can't be used. Scott
Although Maple doesn't have a complement command that will do what you are looking for, you could still use the minus command to get the answer. First you will need to define the universal set (let say you call it U). So you should be able to do something like this >restart: >C:={1,2,3,4,5,6,7,8,9,10,20,50,100}; C := {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 50, 100} >B:={3,5,7,9,50}; B := {3, 5, 7, 9, 50} >U:={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 100}; U:={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 100} >U minus (C minus B); {3, 5, 7, 9, 15, 25, 30, 35, 40, 45, 50, 55} Scott
You may want to start with some simple modeling of a rocket and go from there. For example there is an application on the Maplesoft Application Center here. Also Doug Meade has an application here that also deals with a rocket flight. I would think that the same principle of a rocket would be true for a water rocket (in that the force of the fuel or water being expelled determines the speed that the rocket will move). The only main differences is that the overall weight is a lot less for a water rocket and that the fuel is not burned. If you start with this and have some problems, please let us know where you got stuck and someone will likely point you in the correct direction. Scott
First 15 16 17 18 19 20 21 Last Page 17 of 30