Skip to content

Commit

Permalink
docs reference link
Browse files Browse the repository at this point in the history
  • Loading branch information
cval26 committed Mar 3, 2023
1 parent fa10e9c commit 62396ea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/specs/fftpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,11 @@ Defines the length of the DCT. If `n` is not specified (the default) then `n = s
This argument is `intent(in)` and `optional`.
Defines the type of DCT to be performed. The default type is `2`.

#### Return value
### Return value

Returns a `real` and rank-1 array, the DCT type-`t` of the input data `x`.

#### Notes
### Notes

Within numerical accuracy,
- `x == idct(dct(x, type=1), type=1) / (2*(size(x) - 1))`
Expand Down Expand Up @@ -1217,11 +1217,11 @@ Defines the length of the Fourier transform. If `n` is not specified (the defaul
This argument is `intent(in)` and `optional`.
Defines the type of the IDCT to be performed. The default type is `2`.

#### Return value
### Return value

Returns a `real` and rank-1 array, the IDCT type-`t` of the input data `x`.

#### Notes
### Notes

Within numerical accuracy,
- `x == idct(dct(x, type=1), type=1) / (2*(size(x) - 1))`
Expand All @@ -1240,6 +1240,10 @@ program demo_idct
end program demo_idct
```

## References

[1] Wikipedia, "Discrete cosine transform", [https://en.wikipedia.org/wiki/Discrete_cosine_transform](https://en.wikipedia.org/wiki/Discrete_cosine_transform)

# Utility functions

## `fftshift`
Expand Down

0 comments on commit 62396ea

Please sign in to comment.