Axel Vogt

5821 Reputation

20 Badges

20 years, 222 days
Munich, Bavaria, Germany

MaplePrimes Activity


These are answers submitted by Axel Vogt

Int(5*exp(t)*exp(-2*j*pi*f*t), t = -infinity .. 0)+
Int(5*exp(-t)*exp(-2*j*pi*f*t), t = 0 .. infinity);

subs(j=I, pi=Pi, %); value(%); simplify(%);

                                  10
                             ------------
                                 2  2
                             4 Pi  f  + 1

Lower case sum enforces to find symbolic solutions for each call

You may also consider something like

F:= (t,M) -> Sum(sin(n*t), n=0..M);
plot( F(t,11), t=0..2*Pi);

PS: please post input as text instead of pictures (or at additionally provide it), nobody wants to type in your task

I guess: x^(x^x) + floor( x^(x+1)*ln(x)^4 ), x=10 (floor -> 2811012357389)
But have no sound proof (and what I have seen was to tedious for me,
the keywords are "tetration" and "iterated exponentiation").

Roughly: write x^(x^(x^(x^r))) as series in r, substract x^(x^x) and now
set r=x^(-x^x). 'Simplify', then abbreviate by x^(x^x) = xi. Feed x=10.

This means to divide by xi = extremely large, so floor only lives on the
term x^(x+1)*ln(x)^4, giving the asserted: rest is very small positive,
smaller than frac of that, ~ 0.44

For numerics first apply log, then feed x=10.0 (as float), take exp and
apply floor (and frac).

Using series in that way is not sound, but I think it could be justified.

Look at K:= your integrand by plotting:
  plot3d(K, t=0 .. 70, dd=0 .. 100, axes=boxed);
That lets you guess what happens: for any dd there is just 
1 maximum below 900 and may flatten out indeed:
  diff(K, t); 
  solve(%, t);
  eval(K, t=%);
                                  17
                                 870
So the maximum is in t=17 with value = 870
Thus all integrals are less than 870 * length = 60900
Which is what you also get for dd --> +oo
But your V = 57002400 is larger.
I think there is a fast way with timing below 1/2 second (instead of
some thousands) allowing to plot the roots vs. intensity over the
range 0 ... 10^8.

I have not tried to give a compiled version as well.

For that I used Brent's root finder (having some idea about needed
'bracketting' from experiments allready done, but not needed) and
optimized evaluation of the system.

For finer results one probably needs better data (for example ep0,
is it 1/(4*3.14) or is it 1/(4*Pi) ?), and higher precision.


Find my links appended (the board does not upload my files properly).


http://axelvogt.de/temp/MP_fsolve_2dim_sytem_dilogs_fast.mws
http://axelvogt.de/temp/MP_fsolve_2dim_sytem_dilogs_fast.pdf
 
The 2-dim system are all the same and only differ by the 'intensity',
where the 2nd equation is the same in any case (an originator should
state that in a clear way).

http://www.mapleprimes.com/questions/201767-Fsolve-Cannot-Solve-This-Equations-And
http://www.mapleprimes.com/questions/201804-Reliability-Result-Of-DirectSearch
http://www.mapleprimes.com/questions/201813-DirectSearch-Result

I set up the system using the symbolics only and keep data separately.


For 14250 <= intensity one can estimate the solution by the following
up to an relative error of 2*e-9, with almost immediate result:

  tmp3 := (-aa*enph^3-6*u)*exp(-lambda-c)-exp(-c-b)*aa*enph^3+
    (-aa*enph^3+6*u)*exp(lambda-b)-aa*enph^3;
  approx_eq2 := c = -1/2*(2*((-Pi^2+b^2-2*impurity/cc)^2+
    4*Pi^2*b^2)^(1/2)-2*Pi^2+2*b^2-4*impurity/cc)^(1/2);

  'eval(tmp3, approx_eq2)';
  eval[recurse](%, allData);         # all the actual data
  fsolve(%,b);

If one uses the more expensive

  eval[recurse](tmp3, allData);      # all the actual data:
  phi:=unapply(%, b,c);
  initialGuess:=fsolve(phi(b,'C'(b)), b=bMin .. infinity);

the result also comes up quite quick, error ~ 2*e-12

Where the numerical solution for eq2 can be written as

  C:= b ->
    fsolve(polylog(2,-exp(-c)) = polylog(2,-exp(b))+1/25*Pi, c=-b);

and bMin:= -2.04299751639794 (solving polylog(2,-exp(b))+1/25*Pi).

PS: I used lambda instead of l which does not look like 1. Digits:=15.
Besides Markiyan's reply here is some intrinsic, but ad hoc way.
Look at sys = {F,G}, where G ~ -polylog(2,-exp(b))+polylog(2,-exp(-c))- Pi/25
has a zero locus = curve "like" a (partially) defined function ('implicitplot'
shows that).

Use a numerical procedure C to define that function. Since 'implicitplot' also
indicates some linear behaviour use that to provide a good initial guess (for
speed up). I did that by a series approach.

For the system now one has to solve F(b, C(b)). Maple can do it (you mean Reals?).

http://www.axelvogt.de/temp/MP_fsolve_2dim_sytem_dilogs.mws
http://www.axelvogt.de/temp/MP_fsolve_2dim_sytem_dilogs.pdf
Here is a somewhat brute suggestion for your second question, simple case

select_order:=proc(DE, k::nonnegint)
local P, Delta;
  P:=convert(DE, diff);
  P:=eval(P, diff = '(f,x) ->Diff(f,x)*Delta' );
  P:=eval(P, Diff=diff);
  coeff(P, Delta, k);
end proc;

Tested it (DE should be free of Delta, or refine the code (*) ):

  tst:= eq;
  [seq(select_order(%, n), n=0 .. 5)];
 
  tst=convert(%, `+`): # recollect
  is(%);

which gives the desired and recollection works (giving 'true').

It works for more complicated expressions, try it for
 
  tst:=(1+eq)*x;
  tst:=diff((1+eq)*x, x): tst:=expand(tst):

PS & edited: something like DE <---> Polynom probably is covered
by packages on differential algebra (or physics?) in a sound way.

(*) I now made Delta local, as suggested by Carl

evalf[50](10.2^20);

It first evaluates the inner term. It is a matter of taste whether the next command should append zeros (since we are in decimal representation)

convert(%, radical) will do it

And cos(...) is accurate, of course, you want algebraic expressions for that.
But not all users want to switch from trigonometrics to radicals automatically.

PS: please post code, not pictures

H1:=proc(y, eps)                # similar: H = without an 'epsilon' 
  evalf( Int('x -> (-12*y^2+1)/(4*y^2+1)^3 * ln(abs(Zeta(x+y*I))) ',
    1/2 .. infinity, method = _d01amc, epsilon=eps) );
end proc;
`task` = Int( 'H'(y), y=0 .. infinity);
Plotting near zero looks nice, but it has a wild behaviour and does
not even exhibit a good decay, try on y = 50 .. 100 as example.
Now integrate on y = 2^k .. 2^(k+1) and with reasonable error control
I final get the result as 0.2378564, 6 correct decimals (without any
proof, why it is justified to stop that sum ...)
Find it appended (if Maple's upload works).

MP_integral_2dim_zeta.mws

MP_integral_2dim_zeta.pdf

Für welche Variablen? Es sind wenigstens 4: mu,nu, lambda, alpha - welche ist die parametrische Variable?

 

restart: Digits:=15; interface(version);

eq:=-32.46753247/(Pi*x^2)+1.053598444*10^8*Pi^2*y/x^2-5.342210338*10^14*Pi^2*y*(2.574000000*10^8*Pi^2-.7700000000*x^2)/((-3.904240733*10^6*x^2+1.305131902*10^15*Pi^2-159.8797200*Pi^2*x^2+2.672275320*10^10*Pi^4+2.391363333*10^(-7)*x^4)*x^2)+1.504285714*10^9*Pi^4*y^3/x^2=y:
lhs(%)-rhs(%):
#eq:=convert(%, rational);
numer(%):
P:=collect(%, [y]);

 

 

               (-5.87309355866879*10^15*Pi^5*x^2+4.01986558775078*10^19*Pi^9+359.729369881532*Pi^5*x^4+1.96329127506425*10^24*Pi^7-2.40504778754320*10^11*Pi^7*x^2)*y^3+(-1.30513190210302*10^15*Pi^3*x^2+1.6076*10^13*Pi^5-4.35676556219156*10^10*Pi^5*x^2+2.81550511909160*10^18*Pi^7+185.075086866874*Pi^3*x^4+3.90424073300000*10^6*Pi*x^4-2.39136333300000*10^(-7)*Pi*x^6)*y+1.26761062769374*10^8*x^2-4.23744124058179*10^16*Pi^2+5190.90000039451*Pi^2*x^2-8.67621857208796*10^11*Pi^4-0.776416666617449e-5*x^4       

(1)

R:=[solve(P, y)]: #nops(%);
plot(R[1], x=-10 .. 10);

                            

 

 

 

 

Download plot-it.mw

After re-writing it is a polynomial in y of degree = 3, Maple can solve that and the first of the three solutions is the desired real function. If you want the complex solutions as well then you may use abs(...).

 

Over the complex numbers the situation is similar: only along the axes,
in boxes like the real case as the following plot suggests:

m,n:= 3,5;
myRange:= x= -m*Pi .. m*Pi, y= -n*Pi .. n*Pi;
tan(x+y*I)-tanh(x+y*I);
plot3d(abs(%), myRange, view=-1 .. 1, axes=boxed, orientation=[90,0]);
You may use tan(z)+tan(z*I)*I = tan(z)-tanh(z) to check symmetries.

Initial guess for extreme situations is a task to be done ...

If I understand correctly than the following is assumed:

  assume(0<t, 1<B, 0<eta, 0<h, 0<r, 0<H); # I will use r and H later

You can rewrite your integral and do it in steps

  f:=B*1/t*(t/eta)^B*exp(-(t/eta)^B);
  'Int(f*(t-H), t)'; # = yours, indefinite, setting H = n*h

  'Int(f*H, t)';
  FH:=value(%);

                                      / t \B
                        FH := -H exp(-|---| )
                                      \eta/

Note that this is the same as changing variables and changing back:

  'Int(f*H, t)';
  IntegrationTools:-Change(%, t/eta=r, r);
  value(%);
  eval(%, r=t/eta); # change back

Now do the other

  'Int(f*t, t)';
  Change(%, t/eta=r, r); #expand(%);
  value(%):
 
  # write it as more common functions
  convert(%, hypergeom): convert(%, StandardFunctions):  
 
  # beautify that
  simplify(%): simplify(%, size):
  collect(%, [GAMMA, exp]):
 
  Ft:=eval(%, r=t/eta); # change back

I omit the lengthy output, it is in terms of Gamma function and exp
(and it can be simplied a bit more).


Now your anti-derivative is Ft - eval(FH, H=n*h) from which you can
go on, hoping the fundamental theorem applies (continuity needed).


For the objective function (as written down by acer) you 'only' need
to devide by eval(FH, H=1) to go on.

Hope that helps, an upload is not possible for me here (shameshameshame)
First 17 18 19 20 21 22 23 Last Page 19 of 92