The old Google Groups will be going away soon, but your browser is incompatible with the new version.
simplifying algebraic expressions with Null
 There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic. There was an error processing your request. Please try again. Standard view   View as tree
 1 message

From:
To:
Cc:
Followup To:
Subject:
 Validation: For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon.

More options Feb 21 2012, 6:13 am
Newsgroups: comp.soft-sys.math.mathematica
From: Ramiro <ramiro.ma...@gmail.com>
Date: Tue, 21 Feb 2012 11:13:42 +0000 (UTC)
Local: Tues, Feb 21 2012 6:13 am
Subject: simplifying algebraic expressions with Null
Hi,

how to simplify an algebraic expression such that if a Null expression
is present then the whole algebraic expression gets simplified to
Null?
I'm using Null to represent missing data values. So after some
calculations on data with missing values (Null) I get expressions
involving Null. I'd like to simplify it to Null.
Example:

x=List[List[1,2],List[Plus[2,Null],3],List[4,5]];
Simplify x such that Plus[2,Null] gets replaced with Null, yielding,
lets say, y:
y=x // SpecialSimplification
List[List[1,2],List[Null,3],List[4,5]]

Obviously I'd want this to work on arrays, matrices, etc.. i.e.
applying the simplification up to the algebraic expression and not
further. I mean, I'd not want this to happen:
x=List[List[1,2],List[Plus[2,Null],3],List[4,5]];
y=x // SpecialSimplification
List[List[1,2],Null,List[4,5]]

or

x=List[List[1,2],List[Plus[2,Null],3],List[4,5]];
y=x // SpecialSimplification
Null

In other words, I'd like to be able to set the Null expression as the
absorbing element for any algebraic expression.

Thanks.