Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9914

Re: Struggling to prove simple triangle inequality

From Vladimir M <vladimir7523@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Struggling to prove simple triangle inequality
Date 2012-05-02 00:00 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jnptei$cgk$1@smc.vnet.net> (permalink)
References <201204300842.EAA23670@smc.vnet.net> <jnoa64$54o$1@smc.vnet.net>

Show all headers | View raw


On May 1, 12:25 pm, Andrzej Kozlowski <akozlow...@gmail.com> wrote:
> > Given two 3D vectors A and B, I want to prove that length of their sum
> > is less or equal than the sum of their lengths:
>
> > length[v_] := Sqrt[v.v];
> > a = {ax, ay, az};
> > b = {bx, by, bz};
> > inequality = length[a + b] <= length[a] + length[b];
>
> > vars = {ax, ay, az, bx, by, bz};
> > Reduce[inequality, vars, Reals]
>
> Not really. To solve this sort of problem Reduce uses the algorithm
> called cylindrical algebraic decomposition, which is implemented in
> Mathematica as CylindricalDecomposition. This algorithm's complexity is
> double exponential (i.e. 2^n^n where n is the number of variables.).

Thanks for explanation. Meanwhile, Reduce has run for a few days
at 3 GHz, taking gigabytes of memory and finally crashed the kernel.
Looks like besides checking many combinations, a huge memory is
needed for something (list-based methods instead of iteration-based?)

Anyway, if not Reduce, maybe something else could help
to automatically prove this seemingly simple problem?

--
All the best,
Vladimir

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Struggling to prove simple triangle inequality Andrzej Kozlowski <akozlowski@gmail.com> - 2012-05-01 09:25 +0000
  Re: Struggling to prove simple triangle inequality Vladimir M <vladimir7523@gmail.com> - 2012-05-01 18:58 +0000
  Re: Struggling to prove simple triangle inequality Vladimir M <vladimir7523@gmail.com> - 2012-05-02 00:00 +0000

csiph-web