DDecibelSpruce
Product

Product features · Decibel amplitude ratios

01

DecibelSpruce helps examine amplitude comparisons in the logarithmic domain, where separate logarithms avoid forming an extreme intermediate ratio.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Decibel amplitude ratios

● ● ●DecibelSpruce●
A concrete starting point · Decibel amplitude ratios ×
from math import log10

def amplitude_db(amplitude, reference):
    if any(type(v) not in (int, float) or not 1e-300 <= v <= 1e300
           for v in (amplitude, reference)):
        raise ValueError("amplitude.range")
    return 20 * (log10(amplitude) - log10(reference))
✳Calculate an amplitude ratio in decibels using separate logarithms instead of dividing the inputs.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗