Carl Love

Carl Love

28100 Reputation

25 Badges

13 years, 107 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

Please post your actual code and the actual results from solve.

The square brackets may be due to a recently discovered bug involving piecewise solutions given by solve. The 0 does not mean all parameters equalling 0 because solutions should be listed individually for each parameter. However, I need to see it to interpret the 0.

Your code is missing procedure definitions for Bt and BzProc.

@Muhammad Ali Now that the algorithm is settled, we can overload the ordinary minus operator so that "list minus" works seamlessly with the same syntax as regular set minus. In Maple 17 or 18:

 

restart:

local `minus`:= overload([
     proc(L::list, E::{list,set})
     option overload;
     local R:= table(sparse), e;
          for e in E do R[e]:= R[e]+1 end do;
          remove(e-> if R[e] > 0 then R[e]:= R[e]-1; true else false end if, L)
     end proc,

     :-`minus`
]):

Warning, A new binding for the name ``minus`` has been created. The global instance of this name is still accessible using the :- prefix, :-``minus``.  See ?protect for details.

[1,2,4,6,2,1,3,6,2] minus [7,4,2,5,2];

[1, 6, 1, 3, 6, 2]

Check that the old minus still works as expected:

{1,2,4,6,2,1,3,6,2} minus {7,4,2,5,2};

{1, 3, 6}

 

If you have Maple earlier than 17, it can still be done. Let me know.

Download list_minus.mw

@karolis It is a bug in the MaplePrimes software. If you try uploading the file again, it might work.

Please show your code.

@Muhammad Ali Whether an Array or a table is faster depends on the operation. Let n be the size of the structure: table, Array, set, list. Searching the structure for a particular item takes

  • table: O(1)  (when you're searching the indices, not the entries)
  • Array: O(n)
  • list: O(n)
  • set: O(log(n))  (because sets are stored sorted)

Constructing the structure takes

  • table: O(n) ??? (Not sure about this one; might be O(n*log(log(n))).)
  • Array: O(n)
  • list: O(n)
  • set: O(n*log(n))

 

 

 

@Alejandro Jakubi Yes, that worked. Thanks.

@mehran1520 You need to download the module package DirectSearch from the Maple Applications Center.

Can you give ranges or sample values for the parameters C1, C2, M, Q, lambda, and tau? Obviously you have some if you intended to plot it.

The most likely scenario is that numeric evaluation of the expression over the region of interest yields imaginary parts very close to zero. These imaginary parts are due to round-off error in the floating-point evaluation. They would be zero in exact arithmetic. These can be safely removed by applying Re to the expression. But you must first check that the imaginary parts are close to zero.

@Markiyan Hirnyk 

I edited it. Try again. I am sure that it is attached now.

@Markiyan Hirnyk 

The last Reply had formatting problems, and unfortunately it cannot be edited. So this time I'll attach the executed worksheet without including it inline.

dsolve_value.mw

@Markiyan Hirnyk 

I executed the following in Maple 16.

 

 

Download dsolve_value.mw

@Preben Alsholm I get dsolve results with unevaluated integrals, and hence _z1, in Maple 16 but not Maple 17 or 18. I don't have Maple 15 to check.

How about showing us what you have so far?

I don't know the solution. I just wanted to confirm for you that something is indeed wrong with your installation. The Greek letters when spelled out should all display in their Greek form. Your Greek palette shows them mostly displaying as Roman letters.

First 556 557 558 559 560 561 562 Last Page 558 of 709