摘要:自动检测中文字体 def setup_chinese_font(): """自动检测并设置可用的中文字体""" chinese_fonts = ["Microsoft YaHei", "FangSong", "KaiTi", "SimHei", "SimSun"] found_font = None
阅读全文
摘要:import numpy as np import matplotlib.pyplot as plt def sor_solver(A, b, omega, x0, tol=1e-5, max_iterations=200): """ 使用SOR方法求解线性方程组 Ax = b. 参数: A (np
阅读全文
摘要:import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import ScalarFormatter # 1. 问题定义 # 定义常微分方程 y' = f(x, y) def f(x, y): """ODE
阅读全文
摘要:显示详细的演绎计算过程 To solve the differential equation \( y' = \frac{2y}{x} + x^2 e^x \) with initial condition \( y(1) = 0 \) over the interval \( 1 \leq x \
阅读全文
摘要:计算过程 Below is a detailed solution to the differential equation \( y' = y - \frac{2x}{y} \) with initial condition \( y(0) = 1 \), over the interval \(
阅读全文
摘要:\documentclass[12pt]{article} \usepackage[verbose, a4paper, hmargin=2.5cm, vmargin=2.5cm]{geometry} \usepackage{fontspec} \usepackage{ctex} \usepackag
阅读全文
摘要:项目的目录总体结构 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchem
阅读全文
摘要:/etc/yum.repos.d sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.rep
阅读全文