Skip to content

Instantly share code, notes, and snippets.

@fftlxyz
fftlxyz / noisy-dector.py
Last active December 27, 2022 02:40
噪音检测、录制
import time
import pyaudio
import numpy as np
import wave
import sys
import math
CHUNK = 1024
@fftlxyz
fftlxyz / KataEpicyclesFourierDFT.java
Last active November 2, 2022 07:52
通过离散的傅里叶的方式来构造五角星
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
@fftlxyz
fftlxyz / KataMathTaylorFormula.java
Last active October 27, 2022 09:29
泰勒展开&牛顿迭代的例子
/**
*
* 1. 通过泰勒展开的方式求e、sin95
* 2. 牛顿迭代法求平方根 (https://netedu.xauat.edu.cn/jpkc/netedu/jpkc2009/jsff/content/dzja/3.4.htm)
*/
public class KataMathTaylorFormula {
public static void main(String[] args) {