Kitonum

21675 Reputation

26 Badges

17 years, 184 days

MaplePrimes Activity


These are replies submitted by Kitonum

nm 4588  We can easily generalize your method to other exponential functions (in addition to exp). We can also use the  applyop  command (many shorter if the position of the corresponding terms is known):

restart;
expr := -2*exp(x)*x - exp(x) + 2*exp(x)^2*x + exp(x)^2 +(3^x)^2+ sin(x)^3 + cos(x)^2;
subsindets(expr,{exp(anything)^anything,(anything^anything)^anything},combine); # The first way
applyop(combine,{$1..5},expr); # The second way

          

 

@jalal  It looks even better if the multiplication sign is implied, but not displayed:

4%/5*``(2*x-5);

                              

 

@nm  assuming positive greatly limits the scope of this identity, and if this condition is violated, the identity may be incorrect. For example,  -cos(A) - sin(A) <> sqrt(2)*sin(A+Pi/4)

@jalal 

restart;
randomize():
do
V:=LinearAlgebra[RandomVector](6,generator=10..20);
if nops(convert(V,set))=6 then break fi;
od:
V;

or

restart;
with(combinat):
randomize():
convert(randperm(randcomb([$ 10..20], 6)), Vector);

 

@vv  Thanks for this elaboration. It is clear that these inequalities  (a>2  and  so on) were found by hand.

Compare with solution in Mathematica:

@Carl Love  I started from the desired result for OP and came to the following interpretation: a set is given, each element of which is the product of two factors. One of these factors is fixed (in the question these are  a, b, c ). Find the set of remaining factors.

@Carl Love OP probably just misused the term "common factor". I have shown how to get the desired result in another obvious interpretation, which OP obviously had in mind.

@nm  I wrote "In each specific example ..."

@acer  You wrote  "And how about requesting their spacing evenly by arclength rather than by value of the independent parameter? "

See the post  https://www.mapleprimes.com/posts/213452-Uniform-Point-Plot  with a procedure for this. 

@Carl Love  Sorry, but it seems to me that for a beginner, your method will be difficult to understand.

Another way for the same:

plots:-display(plot(sin(x), x= -Pi..Pi), plot(sin(x),x= -Pi..Pi, style=point, symbol= box, numpoints= 16, adaptive= false));


We can write very short for more symbols:

plot(sin(x), x= -Pi..Pi, style=pointline, symbol= box, numpoints= 30, adaptive= false);

                  

@ecterrab  OP wants to plot the equation  |z+1|*|z-1|=1  (he mistakenly calls it a function), not independent graphs of the left and right sides of this equation.

@abdulganiy  Use the plots:-textplot  command.

@JAMET You have to do it yourself. It's quite easy if you first study the solutions I've shown.

@AHSAN  See my updated answer.

@janhardo I think it is useful to know the physical meaning of this curvilinear integral: if  2*x+y^2  is the linear density at the point  (x,y) of the segment, then the value of the integral is the mass of this segment. 

First 19 20 21 22 23 24 25 Last Page 21 of 133