当前位置:网站首页>Calculate the value of any root n
Calculate the value of any root n
2022-07-21 01:52:00 【lyz_ fish】
Calculate the root sign n:
def devide_n(n,pow=0.5):
...: ## seek n^pow
...: mid = n/2
...: left,right = 0,n
...: while(mid-math.log(n,pow)>1e-5):
...: if mid**2 < n:
...: left = mid
...: else:
...: right = mid
...: mid = (right - left)/2 + left
...: print(mid)
...: return mid
边栏推荐
- 显示SAP CRM Product hierarchy的一个小工具
- 分组卷积和深度可分离卷积
- 服务器的1U、2U、4U是指什么?
- At32 définit le délai en utilisant le registre DWT du noyau
- [trivia] about some unity editors, they lack the tiles option when creating tile maps
- 原生高性能抓包工具Proxyman,送给爱学习的你
- .Net Core快速开发平台,强大工作流引擎,多系统快速配置
- 使用Jmeter做性能测试的指标
- JSP custom tags (an article learned that each line of code has comments)
- AT32 MCU F415 OTG新功能使用
猜你喜欢
Infraversion and superversion
力扣刷题记录3-----34.在排序数组中查找元素的第一个和最后一个位置
一条代码带大家绘制交互式+pdf+png等多格式桑基美图
【LeetCode-中等】34. 在排序数组中查找元素的第一个和最后一个位置 - 数组双指针
Shardingsphere proxy with mogdb/opengauss to realize distributed database
LeetCode. 1252. Number of odd value cells___ Simple simulation / row and column array + permutation and combination
理解和应用持续部署-argo-cd
Matlab: print the figure into PDF format
Necessary skills for mobile terminal test: ADB command and packet capturing
视频25-7章2节VGG 26-NiN 27-GooLeNet
随机推荐
[noi simulation] Simen Nong number (number theory, linked list)
LeetCode.1252. 奇数值单元格的数目___简单模拟 / 行列数组+排列组合
Manually operated industrial robot
AT32使用內核DWT寄存器設定延時時間
【服务器数据恢复】某品牌ProLiant服务器raid瘫痪数据库文件损坏的数据恢复
计算任意根号n的值
都2022年了,你不会还不知道什么是自动化测试吧....
Matlab: print the figure into PDF format
Force deduction and question brushing record 4---69 Square root of X
数据工程系列精讲(第五讲): Data-centric AI之数据集质量
MATLAB:将figure图打印成pdf格式
NetFlow and SNMP are two different network monitoring methods
Top priority of dry goods: common indicators and terms in data analysis!
视频25-7章2节VGG 26-NiN 27-GooLeNet
Difference between filter and interceptor
Message queuing - getting started with message queuing
LVS群集应用
AT32 MCU F415 OTG新功能使用
编译+链接和预处理
ICMP - echo / echo reply (Ping) message