当前位置:网站首页>一个简单的代数问题的求解
一个简单的代数问题的求解
2022-07-07 00:35:00 【卓晴】

§01代数求解
有一道有趣的题目,展示了技巧计算与数值计算之间的差异。
已知变量a,b平方的差与a,b的乘积, 求a+b的值。学过数学的人的直接冲动,就是根据ab=3, 得到b=3/a。带到第一个表达式 可以列出关于a的方程。 求解这个方程。 便可以得到a平方的取值 根据a平方大于0, 便可以得到a的唯一取值, 这个取值看弃疗比较复杂。 不过这是求出的a的取值。

下面再根据b=3/a, 可以知道b的取值, 最终获得a+b的取值。 化简这个表达式简直就是一个噩梦。 这里给出了a,b,a+b的数值求解。

这个求解过程是标准的代数求解方法, 只是最后的结果化简不是很友好。 除了直接求解还有别的好办法吗?

下面就是另外一种求解方法。 为了求a+b的值, 先看看是否可以求得(a+b)的平方取值? 展开a+b的平方,可以看到其中包含三项, 中间的ab乘积是已知的, 但a平方+b平方需要求的。

为了求 a的平方+b的平方, 将已知的 (a平方减b平方)进行平方, 可以获得a的四次方,减去2倍的a方b方,加上b的四次方。 根据已知条件,它等于9的平方。 将方程左右同时加上4bz的a方b方, 左边得到了a方加b方的平方项。 右边可以计算出等于117。

由此可以得到 a方加b方的取值, 经过两边同时开方, 便可以得到a方加b方的取值。 将求得的a方加b方代入最初表达式, 可以得到 a加b平方的取值。 两边进行开方, 便可以得到a+b的取值了。

对比前后两种方法求解, 可以看到它们结果是相同的。 第一种方法,开始简单,后面化简复杂。 第二种方法,需要用到数学小技巧, 但结果化简比较容易。 你认为内种方法更好呢?

※ 总 结 ※
本文测试了利用PAD完成代数方程求解的过程。
边栏推荐
- 软件测试面试技巧
- C nullable type
- 5. Data access - entityframework integration
- Go 语言的 Context 详解
- 集群、分布式、微服务的区别和介绍
- Reading the paper [sensor enlarged egocentric video captioning with dynamic modal attention]
- Flinksql 读写pgsql
- 成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
- 如何提高网站权重
- [solved] record an error in easyexcel [when reading the XLS file, no error will be reported when reading the whole table, and an error will be reported when reading the specified sheet name]
猜你喜欢
![R language [logic control] [mathematical operation]](/img/93/06a306561e3e7cb150d243541cc839.png)
R language [logic control] [mathematical operation]

架构设计的五个核心要素

《2022中国低/无代码市场研究及选型评估报告》发布

What is message queuing?

Digital IC interview summary (interview experience sharing of large manufacturers)

Determine whether the file is a DICOM file

Why does the data center need a set of infrastructure visual management system

Five core elements of architecture design

Web architecture design process
![[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation](/img/f6/cd307c03ea723e1fb6a0011b37d3ef.png)
[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation
随机推荐
Things about data storage 2
Paper reading [semantic tag enlarged xlnv model for video captioning]
async / await
Web authentication API compatible version information
常用消息队列有哪些?
Win configuration PM2 boot auto start node project
消息队列:如何确保消息不会丢失
Add salt and pepper noise or Gaussian noise to the picture
nVisual网络可视化
Modes of optical fiber - single mode and multimode
ForkJoin最全详解(从原理设计到使用图解)
分布式事务介绍
Pinduoduo product details interface, pinduoduo product basic information, pinduoduo product attribute interface
Taobao store release API interface (New), Taobao oauth2.0 store commodity API interface, Taobao commodity release API interface, Taobao commodity launch API interface, a complete set of launch store i
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
Flinksql read / write PgSQL
Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
Explication contextuelle du langage Go
SAP ABAP BDC (batch data communication) -018
如何提高网站权重