根据导数的定义计算导函数
根据导数的定义计算导函数
- 1. Finding derivatives using the definition (使用定义求导)
- 1.1. **We want to differentiate f ( x ) = 1 / x f(x) = 1/x f(x)=1/x with respect to x x x**</font>
- 1.2. **We want to differentiate f ( x ) = x f(x) = \sqrt{x} f(x)=x with respect to x x x**</font>
- 1.3. **We want to differentiate f ( x ) = x + x 2 f(x) = \sqrt{x} + x^{2} f(x)=x+x2 with respect to x x x**</font>
- 1.4. **We want to differentiate f ( x ) = x n f(x) = x^{n} f(x)=xn with respect to x x x, where n n n is some positive integer**</font>
- 1.5. **We want to differentiate f ( x ) = x a f(x) = x^{a} f(x)=xa with respect to x x x, when a a a is any real number at all**</font>
- References
1. Finding derivatives using the definition (使用定义求导)
1.1. We want to differentiate f ( x ) = 1 / x f(x) = 1/x f(x)=1/x with respect to x x x
对 f ( x ) = 1 / x f(x) = 1/x f(x)=1/x 关于 x x x 求导
The definition of the derivative (导数的定义) is
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h \begin{aligned} f'(x) = \underset{h \rightarrow 0}{\text{lim}}\frac{f(x + h) - f(x)}{h} \end{aligned} f′(x)=h→0limhf(x+h)−f(x)
If you just replace h h h by 0
in the fraction, you end up with the indeterminate form 0 0 \frac{0}{0} 00.
如果只是用 0
替换 h h h,结果就会得到一个 0 0 \frac{0}{0} 00 的不定式。
So in our case we have
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h = lim h → 0 1 x + h − 1 x h = lim h → 0 x − ( x + h ) ( x + h ) x h = lim h → 0 − h h ( x + h ) x = lim h → 0 − 1 ( x + h ) x = − 1 ( x + 0 ) x = − 1 x 2 \begin{aligned} f'(x) &= \underset{h \rightarrow 0}{\text{lim}}\frac{f(x + h) - f(x)}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{\frac{1}{x + h} - \frac{1}{x}}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{\frac{x - (x + h)}{(x + h)x}}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{-h}{h(x + h)x} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{-1}{(x + h)x} \\ &= \frac{-1}{(x + 0)x} \\ &= -\frac{1}{x^2} \\ \end{aligned} f′(x)=h→0limhf(x+h)−f(x)=h→0limhx+h1−x1=h→0limh(x+h)xx−(x+h)=h→0limh(x+h)x−h=h→0lim(x+h)x−1=(x+0)x−1=−x21
d d x ( 1 x ) = − 1 x 2 \begin{aligned} \frac{\text{d}}{\text{d}x}(\frac{1}{x}) = -\frac{1}{x^2} \\ \end{aligned} dxd(x1)=−x21
1.2. We want to differentiate f ( x ) = x f(x) = \sqrt{x} f(x)=x with respect to x x x
对 f ( x ) = x f(x) = \sqrt{x} f(x)=x 关于 x x x 求导
Let’s multiply top and bottom by the conjugate of the numerator (分子和分母同时乘以分子的共轭表达式) to get
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h = lim h → 0 x + h − x h = lim h → 0 x + h − x h × x + h + x x + h + x = lim h → 0 ( x + h ) − x h ( x + h + x ) = lim h → 0 h h ( x + h + x ) = lim h → 0 1 x + h + x = 1 x + 0 + x = 1 2 x \begin{aligned} f'(x) &= \underset{h \rightarrow 0}{\text{lim}}\frac{f(x + h) - f(x)}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{\sqrt{x + h} - \sqrt{x}}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{\sqrt{x + h} - \sqrt{x}}{h} \times \frac{\sqrt{x + h} + \sqrt{x}}{\sqrt{x + h} + \sqrt{x}} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{(x + h) - x}{h(\sqrt{x + h} + \sqrt{x})} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{h}{h(\sqrt{x + h} + \sqrt{x})} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{1}{\sqrt{x + h} + \sqrt{x}} \\ &= \frac{1}{\sqrt{x + 0} + \sqrt{x}} \\ &= \frac{1}{2\sqrt{x}} \\ \end{aligned} f′(x)=h→0limhf(x+h)−f(x)=h→0limhx+h−x=h→0limhx+h−x×x+h+xx+h+x=h→0limh(x+h+x)(x+h)−x=h→0limh(x+h+x)h=h→0limx+h+x1=x+0+x1=2x1
d d x ( x ) = 1 2 x \begin{aligned} \frac{\text{d}}{\text{d}x}(\sqrt{x}) = \frac{1}{2\sqrt{x}} \\ \end{aligned} dxd(x)=2x1
1.3. We want to differentiate f ( x ) = x + x 2 f(x) = \sqrt{x} + x^{2} f(x)=x+x2 with respect to x x x
对 f ( x ) = x + x 2 f(x) = \sqrt{x} + x^{2} f(x)=x+x2 关于 x x x 求导
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h = lim h → 0 ( x + h + ( x + h ) 2 ) − ( x + x 2 ) h = lim h → 0 x + h − x + ( x + h ) 2 − x 2 h = lim h → 0 x + h − x + 2 x h + h 2 h = lim h → 0 ( x + h − x h + 2 x h + h 2 h ) = lim h → 0 ( x + h − x h + 2 x + h ) = lim h → 0 x + h − x h + lim h → 0 ( 2 x + h ) = 1 2 x + lim h → 0 ( 2 x + h ) = 1 2 x + ( 2 x + 0 ) = 1 2 x + 2 x \begin{aligned} f'(x) &= \underset{h \rightarrow 0}{\text{lim}}\frac{f(x + h) - f(x)}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{(\sqrt{x + h} + (x + h)^2) - (\sqrt{x} + x^2)}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{\sqrt{x + h} - \sqrt{x} + (x + h)^2 - x^2}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{\sqrt{x + h} - \sqrt{x} + 2xh + h^2}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}(\frac{\sqrt{x + h} - \sqrt{x}}{h} + \frac{2xh + h^2}{h}) \\ &= \underset{h \rightarrow 0}{\text{lim}}(\frac{\sqrt{x + h} - \sqrt{x}}{h} + {2x + h}) \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{\sqrt{x + h} - \sqrt{x}}{h} + \underset{h \rightarrow 0}{\text{lim}}({2x + h}) \\ &= \frac{1}{2\sqrt{x}} + \underset{h \rightarrow 0}{\text{lim}}({2x + h}) \\ &= \frac{1}{2\sqrt{x}} + ({2x + 0}) \\ &= \frac{1}{2\sqrt{x}} + 2x \\ \end{aligned} f′(x)=h→0limhf(x+h)−f(x)=h→0limh(x+h+(x+h)2)−(x+x2)=h→0limhx+h−x+(x+h)2−x2=h→0limhx+h−x+2xh+h2=h→0lim(hx+h−x+h2xh+h2)=h→0lim(hx+h−x+2x+h)=h→0limhx+h−x+h→0lim(2x+h)=2x1+h→0lim(2x+h)=2x1+(2x+0)=2x1+2x
1.4. We want to differentiate f ( x ) = x n f(x) = x^{n} f(x)=xn with respect to x x x, where n n n is some positive integer
对 f ( x ) = x n f(x) = x^{n} f(x)=xn 关于 x x x 求导,其中 n n n 是某个正整数
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h = lim h → 0 ( x + h ) n − x n h \begin{aligned} f'(x) &= \underset{h \rightarrow 0}{\text{lim}}\frac{f(x + h) - f(x)}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{(x + h)^{n} - x^{n}}{h} \\ \end{aligned} f′(x)=h→0limhf(x+h)−f(x)=h→0limh(x+h)n−xn
( x + h ) n = ( x + h ) ( x + h ) … ( x + h ) \begin{aligned} (x + h)^{n} = (x + h)(x + h) \dots (x + h) \end{aligned} (x+h)n=(x+h)(x+h)…(x+h)
If you take the term x x x from each factor, there are n n n of them, so you get one term x n x^{n} xn in the product.
如果从每一个因子中提取项 x x x,将会有 n n n 个 x x x,因而会在乘积中得到 x n x^{n} xn 这一项。
( x + h ) n = ( x + h ) ( x + h ) … ( x + h ) = x n + 含有因子 h 的项 \begin{aligned} (x + h)^{n} = (x + h)(x + h) \dots (x + h) = x^{n} + 含有因子 \ h \ 的项 \end{aligned} (x+h)n=(x+h)(x+h)…(x+h)=xn+含有因子 h 的项
If you take the term h h h from the first factor and x x x from the others, then you have one h h h and ( n − 1 ) (n - 1) (n−1) copies of x x x, so you get h x n − 1 hx^{n - 1} hxn−1 when you multiply them all together.
如果从第一个因子中提取 h h h,然后从其他因子中提取 x x x,那样就会有一个 h h h 和 ( n − 1 ) (n - 1) (n−1) 个 x x x,因此当将它们都乘起来的时候会得到 h x n − 1 hx^{n - 1} hxn−1。还有其他的方法来选择一个 h h h 和其余的 x x x (可以从第二个因子里提取 h h h,然后从其他因子中提取 x x x;或者从第三个因子里提取 h h h,然后从其他因子中提取 x x x,如此等等)。
In fact, there are n n n ways you could pick one h h h and the rest x x x, so you actually have n n n copies of h x n − 1 hx^{n-1} hxn−1. Together, this makes n h x n − 1 nhx^{n-1} nhxn−1.
事实上,有 n n n 种方法来选取一个 h h h 和其余的 x x x,因此实际上有 n n n 个 h x n − 1 hx^{n - 1} hxn−1 加在一起,会得到 n h x n − 1 nhx^{n - 1} nhxn−1。
Every other term in the expansion has at least two copies of h h h, so every other term has a factor of h 2 h^2 h2.
在展开式中,每隔一项至少有两个 h h h,因此每隔一项就含有一个带 h 2 h^2 h2 的因子。
( x + h ) n = ( x + h ) ( x + h ) … ( x + h ) = x n + n h x n − 1 + 含有因子 h 2 的项 \begin{aligned} (x + h)^{n} = (x + h)(x + h) \dots (x + h) = x^{n} + nhx^{n - 1} + 含有因子 \ h^{2} \ 的项 \end{aligned} (x+h)n=(x+h)(x+h)…(x+h)=xn+nhxn−1+含有因子 h2 的项
Term is just a polynomial in x x x and h h h.
项是含有 x x x 和 h h h 的多项式。
f ′ ( x ) = lim h → 0 f ( x + h ) − f ( x ) h = lim h → 0 ( x + h ) n − x n h = lim h → 0 x n + n h x n − 1 + h 2 × ( term ) − x n h = lim h → 0 n h x n − 1 + h 2 × ( term ) h = lim h → 0 ( n x n − 1 + h × ( term ) ) = n x n − 1 + 0 × ( term ) = n x n − 1 \begin{aligned} f'(x) &= \underset{h \rightarrow 0}{\text{lim}}\frac{f(x + h) - f(x)}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{(x + h)^{n} - x^{n}}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{x^{n} + nhx^{n - 1} + h^{2} \times (\text{term}) - x^{n}}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}\frac{nhx^{n - 1} + h^{2} \times (\text{term})}{h} \\ &= \underset{h \rightarrow 0}{\text{lim}}({nx^{n - 1} + h \times (\text{term})} )\\ &= nx^{n - 1} + 0 \times (\text{term}) \\ &= nx^{n - 1} \\ \end{aligned} f′(x)=h→0limhf(x+h)−f(x)=h→0limh(x+h)n−xn=h→0limhxn+nhxn−1+h2×(term)−xn=h→0limhnhxn−1+h2×(term)=h→0lim(nxn−1+h×(term))=nxn−1+0×(term)=nxn−1
The x n x^{n} xn terms cancel, and then we can cancel out a factor of h h h.
d d x ( x n ) = n x n − 1 when n is a positive integer \begin{aligned} \frac{\text{d}}{\text{d}x}(x^{n}) = nx^{n - 1} \ \text{when} \ n \ \text{is a positive integer} \end{aligned} dxd(xn)=nxn−1 when n is a positive integer
1.5. We want to differentiate f ( x ) = x a f(x) = x^{a} f(x)=xa with respect to x x x, when a a a is any real number at all
对 f ( x ) = x a f(x) = x^{a} f(x)=xa 关于 x x x 求导,其中 a a a 是任意实数
In words, you are simply taking the power, putting a copy of it out front as the coefficient, and then knocking the power down by 1
.
提取次数,将它放在最前面作系数,然后再将次数减少 1
。
d d x ( x a ) = a x a − 1 when a is any real number at all \begin{aligned} \frac{\text{d}}{\text{d}x}(x^{a}) = ax^{a - 1} \ \text{when} \ a \ \text{ is any real number at all} \end{aligned} dxd(xa)=axa−1 when a is any real number at all
When a = 0 a = 0 a=0, then x a x^a xa is the constant function 1
. The derivative is then 0 x − 1 0x^{-1} 0x−1, which is just 0
.
当 a = 0 a = 0 a=0 时, x a x^a xa 是常数函数 1
,其导数是 0 x − 1 0x^{-1} 0x−1,结果是 0
。
如果 C 是常数,那么 d d x ( C ) = 0 。 \begin{aligned} 如果 \ C \ 是常数,那么 \frac{\text{d}}{\text{d}x}(C) = 0。 \end{aligned} 如果 C 是常数,那么dxd(C)=0。
If a = 1 a = 1 a=1, then x a x^a xa is just x x x. According to the formula, the derivative
is 1 x 0 1x^0 1x0, which is the constant function 1
.
当 a = 1 a = 1 a=1 时, x a x^a xa 是 x x x,其导数是 1 x 0 1x^{0} 1x0,也就是常数函数 1
。
d d x ( x ) = 1 \begin{aligned} \frac{\text{d}}{\text{d}x}(x) = 1 \end{aligned} dxd(x)=1
When a = 2 a = 2 a=2, then we see that the derivative of x 2 x^2 x2 with respect to x x x is 2 x 1 2x^1 2x1, which is just 2 x 2x 2x.
When a = − 1 a = -1 a=−1, we can use our formula to see that the derivative of x − 1 x^{-1} x−1 is − 1 × x − 2 -1 \times x^{-2} −1×x−2. In fact, this just says that the derivative of 1 / x 1/x 1/x is − 1 / x 2 -1/x^{2} −1/x2.
d d x ( x ) = d d x ( x 1 / 2 ) = 1 2 x 1 / 2 − 1 = 1 2 x − 1 / 2 = 1 2 × 1 x 1 / 2 = 1 2 × 1 x = 1 2 x \begin{aligned} \frac{\text{d}}{\text{d}x}(\sqrt{x}) &= \frac{\text{d}}{\text{d}x}(x^{1/2}) \\ &= \frac{1}{2}x^{1/2 - 1} \\ &= \frac{1}{2}x^{-1/2} \\ &= \frac{1}{2} \times \frac{1}{x^{1/2}} \\ &= \frac{1}{2} \times \frac{1}{\sqrt{x}} \\ &=\frac{1}{2\sqrt{x}} \\ \end{aligned} dxd(x)=dxd(x1/2)=21x1/2−1=21x−1/2=21×x1/21=21×x1=2x1
d d x ( x 3 ) = d d x ( x 1 / 3 ) = 1 3 x 1 / 3 − 1 = 1 3 x − 2 / 3 = 1 3 × 1 x 2 / 3 = 1 3 × 1 x 2 3 = 1 3 x 2 3 \begin{aligned} \frac{\text{d}}{\text{d}x}(\sqrt[3]{x}) &= \frac{\text{d}}{\text{d}x}(x^{1/3}) \\ &= \frac{1}{3}x^{1/3 - 1} \\ &= \frac{1}{3}x^{-2/3} \\ &= \frac{1}{3} \times \frac{1}{x^{2/3}} \\ &= \frac{1}{3} \times \frac{1}{\sqrt[3]{x^{2}}} \\ &=\frac{1}{3\sqrt[3]{x^{2}}} \\ \end{aligned} dxd(3x)=dxd(x1/3)=31x1/3−1=31x−2/3=31×x2/31=31×3x21=33x21
References
[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/
[2] 普林斯顿微积分读本 (修订版), https://m.ituring.com.cn/book/1623
相关文章:

根据导数的定义计算导函数
根据导数的定义计算导函数 1. Finding derivatives using the definition (使用定义求导)1.1. **We want to differentiate f ( x ) 1 / x f(x) 1/x f(x)1/x with respect to x x x**</font>1.2. **We want to differentiate f ( x ) x f(x) \sqrt{x} f(x)x wi…...
WPF关于打开新窗口获取数据的回调方法的两种方式
一种基于消息发送模式 一种基于回调机制 基于消息发送模式 父页面定义接收的_selectedPnNumberStandarMsg保证是唯一 Messenger.Default.Register<PlateReplaceApplyModel>(this, _selectedPnNumberStandarMsgToken, platePnNumberModel > { …...

复杂网络(四)
一、规则网络 孤立节点网络全局耦合网络(又称完全网络)星型网络一维环二维晶格 编程实践: import networkx as nx import matplotlib.pyplot as pltn 10 #创建孤立节点图 G1 nx.Graph() G1.add_nodes_from(list(range(n))) plt.figure(f…...

用MATLAB符号工具建立机器人的动力学模型
目录 介绍代码功能演示拉格朗日方法回顾求解符号表达式数值求解 介绍 开发机器人过程中经常需要用牛顿-拉格朗日法建立机器人的动力学模型,表示为二阶微分方程组。本文以一个二杆系统为例,介绍如何用MATLAB符号工具得到微分方程表达式,只需要…...

SQL优化与性能——数据库设计优化
数据库设计优化是提高数据库性能、确保数据一致性和支持业务增长的关键环节。无论是大型企业应用还是小型项目,合理的数据库设计都能够显著提升系统性能、减少冗余数据、优化查询响应时间,并降低维护成本。本章将深入探讨数据库设计中的几个关键技术要点…...

FPGA存在的意义:为什么adc连续采样需要fpga来做,而不会直接用iic来实现
FPGA存在的意义:为什么adc连续采样需要fpga来做,而不会直接用iic来实现 原因ADS111x连续采样实现连续采样功能说明iic读取adc的数据速率 VS adc连续采样的速率adc连续采样的速率iic读取adc的数据速率结论分析 FPGA读取adc数据问题一:读取adc数…...

我们来学mysql -- 事务之概念(原理篇)
事务的概念 题记一个例子一致性隔离性原子性持久性 题记 在漫长的编程岁月中,存在一如既往地贯穿着工作,面试的概念这类知识点,事不关己当然高高挂起,精准踩坑时那心情也的却是日了🐶请原谅我的粗俗,遇到B…...

基于特征子空间的高维异常检测:一种高效且可解释的方法
本文将重点探讨一种替代传统单一检测器的方法:不是采用单一检测器分析数据集的所有特征,而是构建多个专注于特征子集(即子空间)的检测器系统。 在表格数据的异常检测实践中,我们的目标是识别数据中最为异常的记录,这种异常性可以…...

看不见的彼方:交换空间——小菜一碟
有个蓝色的链接,先去看看两年前的题目的write up (https://github.com/USTC-Hackergame/hackergame2022-writeups/blob/master/official/%E7%9C%8B%E4%B8%8D%E8%A7%81%E7%9A%84%E5%BD%BC%E6%96%B9/README.md) 从别人的write up中了解到&…...
YOLO模型训练后的best.pt和last.pt区别
在选择YOLO模型训练后的权重文件best.pt和last.pt时,主要取决于具体的应用场景:12 best.pt:这个文件保存的是在训练过程中表现最好的模型权重。通常用于推理和部署阶段,因为它包含了在验证集上表现最好的模型权重&#x…...

Pareidoscope - 语言结构关联工具
文章目录 关于 Pareidoscope安装使用方法输入格式语料库查询 将语料库转换为 SQLite3 数据库两种语言结构之间的关联简单词素分析关联共现和伴随词素分析相关的更大结构可视化关联结构 关于 Pareidoscope Pareidoscope 是一组 用于确定任意语言结构之间 关联的工具,…...
GPT(Generative Pre-trained Transformer) 和 Transformer的比较
GPT(Generative Pre-trained Transformer) 和 Transformer 的比较 flyfish 1. Transformer 是一种模型架构 Transformer 是一种通用的神经网络架构,由 Vaswani 等人在论文 “Attention Is All You Need”(2017)中提…...

软件无线电(SDR)的架构及相关术语
今天简要介绍实现无线电系统调制和解调的主要方法,这在软件定义无线电(SDR)的背景下很重要。 外差和超外差 无线电发射机有两种主要架构——一种是从基带频率直接调制到射频频率(称为外差),而第二种超外差是通过两个调制阶段来实…...
Python将Excel文件转换为JSON文件
工作过程中,需要从 Excel 文件中读取数据,然后交给 Python 程序处理数据,中间需要把 Excel 文件读取出来转为 json 格式,再进行下一步数据处理。 这里我们使用pandas库,这是一个强大的数据分析工具,能够方便地读取和处理各种数据格式。需要注意的是还需要引入openpyxl库,…...

排序算法之选择排序篇
思想: 每次从未排序的部分找出最小的元素,将其放到已排序部分的末尾 从数据结构中找到最小值,放到第一位,放到最前面,之后再从剩下的元素中找出第二小的值放到第二位,以此类推。 实现思路: 遍…...

sizeof和strlen区分,(好多例子)
sizeof算字节大小 带\0 strlen算字符串长度 \0之前...

A050-基于spring boot物流管理系统设计与实现
🙊作者简介:在校研究生,拥有计算机专业的研究生开发团队,分享技术代码帮助学生学习,独立完成自己的网站项目。 代码可以查看文章末尾⬇️联系方式获取,记得注明来意哦~🌹 赠送计算机毕业设计600…...

[自然语言处理] NLP-RNN及其变体-干货
一、认识RNN模型 1 什么是RNN模型 RNN(Recurrent Neural Network), 中文称作循环神经网络, 它一般以序列数据为输入, 通过网络内部的结构设计有效捕捉序列之间的关系特征, 一般也是以序列形式进行输出. 一般单层神经网络结构: RNN单层网络结构: 以时间步对RNN进行展开后的单层…...
Elasticsearch ILM 索引生命周期管理讲解与实战
ES ILM 索引生命周期管理讲解与实战 Elasticsearch ILM索引生命周期管理:深度解析与实战演练1. 引言1.1 背景介绍1.2 研究意义2. ILM核心概念2.1 ILM的四个阶段2.1.1 Hot阶段2.1.2 Warm阶段2.1.3 Cold阶段2.1.4 Delete阶段3. ILM实战指南3.1 定义ILM策略3.1.1 创建ILM策略3.1.…...

重塑视频新语言,让每一帧都焕发新生——Video-Retalking,开启数字人沉浸式交流新纪元!
模型简介 Video-Retalking 模型是一种基于深度学习的视频再谈话技术,它通过分析视频中的音频和图像信息,实现视频角色口型、表情乃至肢体动作的精准控制与合成。这一技术的实现依赖于强大的技术架构和核心算法,特别是生成对抗网络࿰…...

idea大量爆红问题解决
问题描述 在学习和工作中,idea是程序员不可缺少的一个工具,但是突然在有些时候就会出现大量爆红的问题,发现无法跳转,无论是关机重启或者是替换root都无法解决 就是如上所展示的问题,但是程序依然可以启动。 问题解决…...

C++_核心编程_多态案例二-制作饮品
#include <iostream> #include <string> using namespace std;/*制作饮品的大致流程为:煮水 - 冲泡 - 倒入杯中 - 加入辅料 利用多态技术实现本案例,提供抽象制作饮品基类,提供子类制作咖啡和茶叶*//*基类*/ class AbstractDr…...

centos 7 部署awstats 网站访问检测
一、基础环境准备(两种安装方式都要做) bash # 安装必要依赖 yum install -y httpd perl mod_perl perl-Time-HiRes perl-DateTime systemctl enable httpd # 设置 Apache 开机自启 systemctl start httpd # 启动 Apache二、安装 AWStats࿰…...

关于nvm与node.js
1 安装nvm 安装过程中手动修改 nvm的安装路径, 以及修改 通过nvm安装node后正在使用的node的存放目录【这句话可能难以理解,但接着往下看你就了然了】 2 修改nvm中settings.txt文件配置 nvm安装成功后,通常在该文件中会出现以下配置&…...

前端导出带有合并单元格的列表
// 导出async function exportExcel(fileName "共识调整.xlsx") {// 所有数据const exportData await getAllMainData();// 表头内容let fitstTitleList [];const secondTitleList [];allColumns.value.forEach(column > {if (!column.children) {fitstTitleL…...
系统设计 --- MongoDB亿级数据查询优化策略
系统设计 --- MongoDB亿级数据查询分表策略 背景Solution --- 分表 背景 使用audit log实现Audi Trail功能 Audit Trail范围: 六个月数据量: 每秒5-7条audi log,共计7千万 – 1亿条数据需要实现全文检索按照时间倒序因为license问题,不能使用ELK只能使用…...

如何在网页里填写 PDF 表格?
有时候,你可能希望用户能在你的网站上填写 PDF 表单。然而,这件事并不简单,因为 PDF 并不是一种原生的网页格式。虽然浏览器可以显示 PDF 文件,但原生并不支持编辑或填写它们。更糟的是,如果你想收集表单数据ÿ…...
QT3D学习笔记——圆台、圆锥
类名作用Qt3DWindow3D渲染窗口容器QEntity场景中的实体(对象或容器)QCamera控制观察视角QPointLight点光源QConeMesh圆锥几何网格QTransform控制实体的位置/旋转/缩放QPhongMaterialPhong光照材质(定义颜色、反光等)QFirstPersonC…...

基于IDIG-GAN的小样本电机轴承故障诊断
目录 🔍 核心问题 一、IDIG-GAN模型原理 1. 整体架构 2. 核心创新点 (1) 梯度归一化(Gradient Normalization) (2) 判别器梯度间隙正则化(Discriminator Gradient Gap Regularization) (3) 自注意力机制(Self-Attention) 3. 完整损失函数 二…...

代码规范和架构【立芯理论一】(2025.06.08)
1、代码规范的目标 代码简洁精炼、美观,可持续性好高效率高复用,可移植性好高内聚,低耦合没有冗余规范性,代码有规可循,可以看出自己当时的思考过程特殊排版,特殊语法,特殊指令,必须…...