Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Zero times a variable in numerical calculations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68395] Zero times a variable in numerical calculations
  • From: "Maurits Haverkort" <Haverkort at ph2.uni-koeln.de>
  • Date: Thu, 3 Aug 2006 06:07:28 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear All



I have the following problem.

In: 0.0 a

Out 0. a



I would like to have that

In: 0.0 a

Simplifies to

Out: 0



SetPrecision[0.0 a,10^-100] works, but I am a bit puzzled



0.0 ====0 returns true

0.0 a ==== 0 a returns unevaluated to 0.0 a ==== 0



This seems inconsistent to me.



1) Could anyone explain me the logic behind this?

2) What is the fastest way to multiply a numerical matrix times a half numerical half analytical sparse matrix, whereby the result is band diagonal. (The current result has 0. a + 0. b + 0. c + 0. d + 0. e + 0. f on all places where it should be zero.)



Thanks in advance.

Maurits Haverkort


  • Prev by Date: Re: MeanTest Function not Working
  • Next by Date: Re: MeanTest Function not Working
  • Previous by thread: DDE input in Mathematica 5.2
  • Next by thread: Re: Zero times a variable in numerical calculations