Kitonum

21435 Reputation

26 Badges

17 years, 23 days

MaplePrimes Activity


These are replies submitted by Kitonum

@Grigoriy Yashin  I added 1 short line:


 

restart; PDEtools[declare](`θ__si`(t), `β__si`(t), psi(t), x(t), z(t)); PDEtools[declare](prime = t); V__1six := diff(x(t), t)-`l__1с`*sin(`θ__si`(t))*cos(psi(t))*(diff(psi(t), t))-sin(psi(t))*`l__1с`*cos(`θ__si`(t))*(diff(`θ__si`(t), t)); V__1siy := -`l__1с`*sin(`θ__si`(t))*(diff(`θ__si`(t), t)); V__1siz := diff(z(t), t)+`l__1с`*sin(`θ__si`(t))*sin(psi(t))*(diff(psi(t), t))-cos(psi(t))*`l__1с`*cos(`θ__si`(t))*(diff(`θ__si`(t), t)); V__1si := simplify(V__1six^2+V__1siy^2+V__1siz^2, size); V__1si := map(simplify, collect(V__1si, [diff, diff(`θ__si`(t), t), `l__1с`, `l__1с`^2])); V__1si := simplify(V__1si, size)

`l__1с`^2*(diff(theta__si(t), t))^2-2*cos(theta__si(t))*`l__1с`*((diff(z(t), t))*cos(psi(t))+sin(psi(t))*(diff(x(t), t)))*(diff(theta__si(t), t))+`l__1с`^2*(diff(psi(t), t))^2*sin(theta__si(t))^2+2*sin(theta__si(t))*`l__1с`*((diff(z(t), t))*sin(psi(t))-cos(psi(t))*(diff(x(t), t)))*(diff(psi(t), t))+(diff(z(t), t))^2+(diff(x(t), t))^2

(1)

 

NULL


 

Download trigon_new.mw

@Tyttemus  You yourself see that on the right side of the equality  k = ...  the variable  V  is not reduced, that is,  depends on  V . Therefore, it is impossible to remove  V .

Here is a very simple example illustrating your problem. Let you have the equation  3*x+2*y=0 . Then it is easy to find  x/y = -2/3. But if we slightly change the equation  3*x+2*y+1=0 , then it is impossible to find  x/y , that it does not depend on either  x  or  y .

@Carl Love  Thank you for this improvement.

@Carl Love  This probably only works in recent versions of Maple.

In Maple 2018.2 :

[for i from 11 to 20 do i^2 od];

     Error, reserved word `for` unexpected

@nm   Try  color="DarkSlateGray"  instead of color=gray .

You should present all of this in text form using Maple syntax. Why should someone do this for you?

@Teep  Of course, all this is easy to do on one plane:

restart; with(plots): 
z := (x, y)->(x^2+y*x+y^2)*sqrt((1-y^2)^2/(x+y)^2-(x-y)^2): 
Colors := [yellow, orange, red, green, blue, khaki, violet, cyan,pink,magenta]: 
plot([seq([x, z(x, y), x = 0 .. 1], y = 0 .. 0.9, 0.1)], color = Colors, thickness = 2, legend = [seq(y = C, C = 0 .. 0.9, 0.1)], labels = [x, z]);

                      

 


Edit.    

 

@Carl Love  Thank you. I do not see much need to use polar axes, because a large number of additional lines and inscriptions only interfere with better viewing the curve itself.

@JAMET It will be a regular segment:

plot([r*cos(Pi/4),r*sin(Pi/4),r=1..2], color="Green", thickness=3, view=[0..1.5,0..1.5]);

 

@emendes  Then I do not understand you. You wrote "...I just need subsets with a chosen number of elements..". I showed how to generate all subsets of a given size. You write that this is not what you need. Can you more accurately formulate your goal?
Here's an example of another way to solve the problem. We generate all triples of numbers in the range 1..10, the sum of which does not exceed 10:

seq(seq(seq(`if`(i+j+k<=10,{i,j,k},NULL), k=j+1..10), j=i+1..9), i=1..8);

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


See also the commands in the  Iterator  package for your purposes.

@SIMBA  It is probably impossible to obtain the indefinite integral 

int(tanh(x)/sqrt(x^2+1), x);

 in closed form.

@Al86  In order for the equality  f'(x1)=f'(x2)=(f(x1)-f(x2))/(x1-x2)  to be fulfilled, you need to find such 2 points on the graph so that the line passing through these 2 points touches the graph at these points. The solution is below.

restart;
f:=x->a/2*x*(1-x)+(x/4)*ln(x)+(1-x)*ln(1-x):
a:=3:

fsolve({D(f)(x1)=D(f)(x2),(f(x2)-f(x1))/(x2-x1)=D(f)(x1)}, {x1=0..1,x2=0..1});
x2,x1:=eval([x2,x1], %)[];

plot([f(x),solve((y-f(x1))/(f(x2)-f(x1))=(x-x1)/(x2-x1),y)], x=-0.1..1, color=[red,blue]);

                 



I do not understand the meaning "I want to find the graph of f above in the interval [x1,x2] or [x2,x1] alongside the same function f but which also satisfies at the point of intersection with the above graph f''(x)=0."

Please specify which polynomials are in question. You wrote "How can I define a set generated by two degree n  polynomials with binary coefficients?". But in your example for  n = 2  we see a product of two polynomials, each of the 1st degree and with two variables. And what will happen for n = 3?

 

Present here the full code of your worksheet.

I think that the point of the problem is that one of the lines is vertical, that is, it is not expressed in the form y = ax + b. If we reflect everything relatively straight line  y=x  (I just changed the order of coordinates), then it is obvious that the angle will not change, but the result will be correct:

restart:
with(geometry):
point(o, 0, 0): 
point(A, 1, 0): 
point(d, 2, 0):
point(F,  1.4472135960, 0.8944271920): 
line(lOD, [o, d]): 
line(lAF, [A, F]): 
alpha := FindAngle(lOD, lAF);

                                       

 

First 21 22 23 24 25 26 27 Last Page 23 of 132