Skip to content

Commit

Permalink
fix: fixed failing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
denehoffman committed Jun 5, 2024
1 parent db70e53 commit d0da6de
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions crates/rustitude-core/src/amplitude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,18 @@ pub trait Node: Sync + Send {
/// imaginary part of a single [`AmpOp`]. Sums of [`AmpOp`]s are handeled by the [`CohSum`] struct.
///
/// These structs follow some rules for addition and multiplication:
/// ```
/// AmpOp + AmpOp = CohSum
/// AmpOp + CohSum = CohSum // (appending)
/// CohSum + CohSum = CohSum // (concatenating)
///
/// AmpOp * AmpOp = AmpOp
/// AmpOp * CohSum = CohSum // AmpOp is distributed over terms of CohSum
/// CohSum * CohSum = UNDEFINED
/// ```
/// > `AmpOp + AmpOp = CohSum`
/// >
/// > `AmpOp + CohSum = CohSum` (appending)
/// >
/// > `CohSum + CohSum = CohSum` (concatenating)
///
/// > `AmpOp * AmpOp = AmpOp`
/// >
/// > `AmpOp * CohSum = CohSum` (`AmpOp` is distributed over terms of `CohSum`)
/// >
/// > `CohSum * CohSum = UNDEFINED`
///
/// This format should be able to handle any generalized intensity equation based on amplitude
/// nodes. For instance, if an incoherent sum is needed, two separate [`CohSum`]s can be created
Expand Down

0 comments on commit d0da6de

Please sign in to comment.