Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

something like dB

  • To: mathgroup at
  • Subject: [mg56516] something like dB
  • From: Zhengji Li < at>
  • Date: Thu, 28 Apr 2005 02:40:02 -0400 (EDT)
  • Reply-to: Zhengji Li < at>
  • Sender: owner-wri-mathgroup at

Dear Mathematica ers,

    In engineering, we always like values such as power be represented
in dB form.
I can make dB as a Unit, but things go to strange when 0 dB occurs:

    Times[0, dB] will give 0 no matter dB is ReadProtected or not.

    I have tried to define a upvalue for dB: 
              dB /: Times[0, dB] = 1; but Mathematica do not allow
this cause dB is not a

     I can define a new rule for Times: Times[0, dB] = 1, but this may
slow down the
kernel. Anybody know how ?

     Best regards.

  • Prev by Date: Problem running notebook in batch mode
  • Next by Date: Slow performance on OS X?
  • Previous by thread: Re: Problem running notebook in batch mode
  • Next by thread: Re: something like dB