vv

13805 Reputation

20 Badges

9 years, 308 days

MaplePrimes Activity


These are replies submitted by vv

@Kitonum Good idea to consider only "distinct" tetrahedra. 
Strangely, you missed a tetrahedron, Vol(19, 17, 16, 8, 10, 12) = 210.

@mmcdara I agree that the arithmetic progression version is more interesting (otherwise there are too  many solutions).
(I did not notice that the edges were in progression.)
It seems that indeed 6..11 is the only solution (provided that the gcd of the terms is 1, of course, otherwise take any multiple).

@minhthien2016  I have used Maple 2021 syntax.
Replace:
nr++       with    nr := nr+1

break 6  with    error "Stopped at nrmax"

@acer I wonder why 0[expr] simplifies to 0 but 1[expr] remains indexed. Is it documented?

You said: I know how to solve it using either FindMaximum or Langrage multiplier if I assign numerical values to T1, T2, R, Rthhot, Rthcold, and Z.

Please upload a worksheet with your numerical example.

@tomleslie Actually the book is not a bad one. It has a different purpose. 
From the  preface:

It is appropriate to stress here that this book is NOT for learning how to use Maple, but rather for learning how to write and construct computer programs. We expect that the general programming principles learned in this book will greatly help students in their other programming courses (e.g., in C, Pascal, FORTRAN) particularly in their ability to analyze and write complex algorithms.

@mmcdara The "directional expansion" works if f is in the class C^n (near [0,0,...,0]) and the result is a polynomial.
Otherwise, the expansion fails or is non-polynomial. mtaylor does basically the same but also checks the polynomiality.

For example,

f:=(x,y)->sin(x^2*y/(x^2+y^2)):
normal(eval(series(f(t*x,t*y),t=0),t=1)); # non-polynomial

because f is not differentiable at [0,0], (although continuous, provided that f(0,0)=0).

@nm Just differentiate (1) wirh respect to t and then take t=1. Using Maple:

f(t*x, t^p*y) = t^(p-1)*f(x,y):
eval(diff(%, t), t=1); p = solve(%, p);

See a nicer solution here.

@acer My answer contains a simplified explanation based on:
-- the information in the help ?simplify/size
-- the output generated by the simplify commands using printlevel:=40;
 For example, we see here:

--> enter \`simplify/size/size/object\`, args = _z1^2*_z2^2+_z1^2*_z3^2

--> enter \`simplify/size/size/object\`, args = _z1^2*(_z2^2+_z3^2)

@mmcdara In newer versions, the size option is by default in simplify.

@lcz Not like this. A compilable procedure is very restrictive. It cannot contain maple structures (except rtable with hardware entries) , so it must be written from scratch, starting e.g. from the adjacency matrix of the graph.

@Carl Love Maybe with a more flexible input:

CyclSum:= proc(f::{procedure,algebraic}, x::{indexed(posint),list(name)})
    local j,k,n,t,g;
    if x::list then t:=x; n:=nops(x)  else t:=op(0,x); n:=op(1,x) fi;
    if f::procedure then g:=f elif x::list then g:=unapply(f,x) else error "2nd param must be a list here" fi; 
    add(g(seq(t[1+irem(j+k-2, n)], j= 1..n)), k= 1..n)
end:

CyclSum((x,y)->x^y, [x,y,z]);

CyclSum(x^y, [x,y,z]);

CyclSum( () -> args[1]^p*args[2]^q, x[7]);

@Carl Love I wonder what would be a functional procedure for constructing a cyclic sum associated to an arbitrary expression, i.e.  Sum( f(x[s(1)], ..., x[s(n)]), s in Cycl(n) ) ,  where Cycl(n) contains the n cyclic permutations of {1, ..., n}.

[ Probably you will enjoy to write it :-) ]

For symmetric polynomials, any such polynomial can be expressed as a polynomial in the symmetric fundamental sums [probably you used the term "basis" for these].
For n=3 variables (let's restrict the question for this case), these are x+y+z, x*y+y*z+z*x and x*y*z.
They are cyclic (for n=3) but obvbiously only symmetric polynomials can be obtained this way.

Probably there is not a finite set of "fundamental" cyclic polynomials. But for an infinite set, it is not difficult to see that your set of polynomials  union {x*y*z}  forms a "fundamental" set. 

First 22 23 24 25 26 27 28 Last Page 24 of 176