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


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

Re: Eigenvalues, eigenvectors, matrix ranks, determinants, and all that stuff

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Eigenvalues, eigenvectors, matrix ranks, determinants, and all that stuff
Date 2012-03-16 11:33 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jjv8e1$pfs$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 3/15/12 at 12:31 AM, kparchevsky@gmail.com (Konstantin) wrote:

<snip>

>Very often algebraic manipulations in Mathematica do not produce
>expected result just because we and the program have different
>defaul assumptions about type of variables. So I tried to specify
>EVERYTHING about my variables explicitly ( @ means "belongs to", !=
>means "not equal" )

>$Assumptions = u@Reals && u!=0 && Bx@Reals && By@Reals && Bz@Reals
>&& Bx!=0 && By!=0 && Bz!=0 && rho>0 && cs>0;

Unless you have re-defined @ (an ill advised thing to do) you
are not repeat not free to use it to do something other than the
built-in definition. That is Mathematica interprets u@Reals as
the function u with argument Reals, i.e:

In[9]:= u@Reals

Out[9]= u(\[DoubleStruckCapitalR])

If you want to declare u to be a real variable use the function
Element that performs exactly this function That is the statement

{u, Bx, By, Bz} \[Element] Reals

defines the list of variables all to be real.

And note,

In[10]:= Reduce[{Element[x, Reals] && x != 0}, x]

Out[10]= x<0\[Or]x>0

That is stating x != 0 is sufficient to declare x to be real
since the comparison of x to 0 is not valid unless x is real

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


Thread

Re: Eigenvalues, eigenvectors, matrix ranks, determinants, and all that stuff Bill Rowe <readnews@sbcglobal.net> - 2012-03-16 11:33 +0000

csiph-web