vv

14027 Reputation

20 Badges

10 years, 42 days

MaplePrimes Activity


These are replies submitted by vv

@mweisbr 

So, you are using comma as a decimal separator. Probably this should work if the OS "locale" is set correctly.

But the simplest cure is to replace in your file "," by "." using a text editor (or Maple itself).

@Preben Alsholm 

in this case we still have:

Digits:=3:
[0.3333] <> [0.3333] + [0];

(at least visually.)

@Preben Alsholm 

The u in the post can be used. More generally:

# Proof
restart;
u:=evalf[Digits+1](1/3):
is( [u+0] = [u] + [0] ), evalb( [u+0] = [u] + [0] );

                            false, false

 

@Preben Alsholm 

There exists an algebraic exppresion u such that:

[u+0] <> [u]+[0];

 

@Cryme 

g is not C^2 (already answered).

A good package that does non need C^2 and finds even global optima is DirectSearch, see
https://www.maplesoft.com/applications/view.aspx?SID=101333

@mmcdara 

Because the question was about L^* . L = A.

The big problem is that Maple is not able to decide whether a complex number is real.
This should not be difficult for algebraic numbers.

 

f:=5*x^3-5*x+1;

5*x^3-5*x+1

(1)

s:=[solve(f,x)]:

is(s[1],real);  # FAIL

FAIL

(2)

is(RootOf(f,x,index=1),real); # true

true

(3)

max(Re~(s)); # OK
simplify(%); # Re persists

(1/30)*Re((-2700+(300*I)*219^(1/2))^(1/3)+300/(-2700+(300*I)*219^(1/2))^(1/3))

 

(1/30)*Re(((-2700+(300*I)*219^(1/2))^(2/3)+300)/(-2700+(300*I)*219^(1/2))^(1/3))

(4)

 

@tomleslie 

But solve works directly. It is evalc which does not.

You have used evalc in your previous reply, and indeed

max(evalc(s));

works there.

@tomleslie 

Of course it is a symbolic problem. Maple should try harder to identify the real numbers, and not waiting for workarounds.
Note that evalc does not always work. Try:

s:=[solve(5*(x^2-1)*(x^2-x-4)+1,explicit)];
max(s);

 

The integration is not complicated. u is a polynomial/r^4, so the multiple integrals can be computed symbolically.
Use rationals instead of floats.
The problem is that you have many symbolic terms so the result will be huge.

@Robert Israel 

But the best definition is of course  :-)

f := n -> (n^2+n)^2/4;

 

@arjangash 

Y:=numer(y)*denom(y):
CodeTools:-Usage(
SolveTools:-SemiAlgebraic([Y>0, t>0,lambda>0,c>0])
):

 memory used=484.52MiB, alloc change=113.04MiB, cpu time=4.37s, real time=4.28s, gc time=312.00ms

nops(%);
                               8

You cannot hope for nanoseconds!

 

@tomleslie 

It is a linear problem. simplex[maximize] finds the exact solution.

@AmusingYeti 

My remark refers to eigenvectors, not Cholesky which anyway does not apply directly to Av = aBv.

It would be interesting to see an example where eigenvalues works only after the mentioned transform.

@MDD 
{3, 4, 11}  contains the indices of the facets in the list L.

 

First 97 98 99 100 101 102 103 Last Page 99 of 177