Kitonum

20084 Reputation

26 Badges

17 years, 24 days

MaplePrimes Activity


These are replies submitted by Kitonum

@Teep  You can do this automatically as follows

MaplePrimes_network_labels_new.mw

@Teep   See help on the  GraphTheory:-RelabelVertices  command.

@radaar  Unfortunately, I am not familiar with books on Maple in English. Maybe someone else will give such advice. I have long been using only the Maple help system if I forgot something. For example, in the aswer to your initial question, I simply opened the help for  Student:-MultivariateCalculus:-ApproximateInt  command and found the  partition  option for it.

 

@colin12345678  From your original code it is not clear of which expression the derivative is taken. I suggested that of  k(T)/2/Pi*Int(sin(theta)^2/delta(T)/(1+delta(T)), theta=0..Pi)) . In the code below, the derivative is taken only of  k(T)/2/Pi :


 

restart;
k:=T->2/cosh(2/T)/coth(2/T);
delta:=T->sqrt(1-k(T)^2*sin(theta)^2);
e:=T->-2*tanh(2/T)+D(T->k(T)/2/Pi)(T)*Int(sin(theta)^2/delta(T)/(1+delta(T)), theta=0..Pi);

proc (T) options operator, arrow; 2/(cosh(2/T)*coth(2/T)) end proc

 

proc (T) options operator, arrow; sqrt(1-k(T)^2*sin(theta)^2) end proc

 

proc (T) options operator, arrow; -2*tanh(2/T)+(D(proc (T) options operator, arrow; (1/2)*k(T)/Pi end proc))(T)*(Int(sin(theta)^2/(delta(T)*(1+delta(T))), theta = 0 .. Pi)) end proc

(1)

evalf(e(1));

-1.793211145

(2)

evalf(e(4));

-.9522166642

(3)

 


And the last option corresponds to the code in your last comment. Here, the derivative is taken only from the integral:


 

restart;
b:=T->1/T;
k:=T->2/cosh(2*b(T))/coth(2*b(T));
delta:=T->sqrt(1-k(T)^2*sin(theta)^2);
e:=T->-2*tanh(2/T)+k(T)/(2*Pi)*D(T->2/Pi*Int(sin(theta)^2/delta(T)/(1+delta(T)), theta=0..Pi))(T);

proc (T) options operator, arrow; 1/T end proc

 

proc (T) options operator, arrow; 2/(cosh(2*b(T))*coth(2*b(T))) end proc

 

proc (T) options operator, arrow; sqrt(1-k(T)^2*sin(theta)^2) end proc

 

proc (T) options operator, arrow; -2*tanh(2/T)+(1/2)*k(T)*(D(proc (T) options operator, arrow; 2*(Int(sin(theta)^2/(delta(T)*(1+delta(T))), theta = 0 .. Pi))/Pi end proc))(T)/Pi end proc

(1)

evalf(e(1));
evalf(e(4));

-1.895473238

 

-.9574874368

(2)

 


 

Download 1111.mw

Download 111.mw

@David Sycamore  The procedure code needs a minimal change so that it does not check all positive integers  k , but only numbers of the type  k=6*n  (n is positive integer):

Wrapped_prime:=proc(p::prime, N::posint:=5000)
local n, k, m0, m;
n:=length(p);
for k from 6 by 6 to N do
m0:=add(10^i, i=0..k-1);
m:=m0+10^k*p+10^(k+n)*m0;
if isprime(m) then return k fi;
od;
end proc:

Using this procedure, I checked all к (multiples of 6) up to N=10000 . The computer worked for more than an hour, but could not find a prime number.

Wrapped_prime(397, 10000);
 

@mmcdara In original code after  -2*tanh(2/T)  the sign  "+"  stands.

@David Sycamore  You do not need to do anything with the code of this procedure. You just have to copy this code as plain text into your worksheet. Then you press the enter key and after that you can use the procedure as shown in the examples above. You type (or copy) the procedure name and type the desired prime number in parentheses.

@JAMET   I did not understand the meaning of the question.

@Carl Love   for this useful clarification.

@Carl Love  I know. Of course, if for OP is necessary to select the smallest elements, the sum of which does not exceed a bound, then we can use a set. Otherwise, we should use a list.

@Rouben Rostamian   If you take   large enough, (n-5)/6^6  will be greater than 1.

1. 4 is the the total number of the roots of the equation.

2. To solve this equation it is better to use  Student:-Calculus1:-Roots  command. In your example, it immediately returns all 4 roots in symbolic form:

Student:-Calculus1:-Roots((x-1)*(x^3-9*x^2+4), x);

@weidade37211  As a part of your equation, write  (1-10^(-15))^(10^10-1);  in a separate line and press enter (you get  overflow). This is a rational number with a giant numerator and denominator. Maple tries to calculate it exactly and overflow occurs. To avoid this, it is enough to put a decimal point on one of the exact numbers. Then all calculations will occur in float format with the accuracy established by Digits (with 10 digits by default).

(1-10^(-15))^(10^10-1);
Error, numeric exception: overflow

(1-10^(-15))^(10^10.-1);
                                                   1.

To avoid loss of accuracy, I increased  Digits  in my answer below. See:
Digits:=20:
(1-10^(-15))^(10^10.-1);
                                                 
0.99999000005000083332

@Wavish  Since you do not have a clear criterion for obtaining the wished line, then the solution "by eye" is likely to be the easiest and best solution to the problem.

An example of the creation of a specific matrix function:

F:=unapply(<t, t^2; sin(t), cos(t)>, t):
F(2);

First 28 29 30 31 32 33 34 Last Page 30 of 126