2018 Multi-University Training Contest 6-oval-and-rectangle(hdu 6362)-题解
一、题意
求椭圆内接矩形周长的期望。
二、推导过程
已知$c$,容易得出矩形弦长$d=4a\sqrt{1-\frac{c^2}{b^2}}$
接下来,矩形周长$p=4c+d=4c+4a\sqrt{1-\frac{c^2}{b^2}}$
那么,椭圆内接矩形周长的期望值$E=\frac{\int_{0}^{b}(4c+4a\sqrt{1-\frac{c^2}{b^2}})\, dc}{b}$
令$F(c)=\int_{0}^{b}(4c+4a\sqrt{1-\frac{c^2}{b^2}})\, dc$, 那么:
$F(c)=\int_{0}^{b}(4c+4a\sqrt{1-\frac{c^2}{b^2}})\, dc$
$=\int_{0}^{b}4c\,dc + \int_{0}^{b}4a\sqrt{1-\frac{c^2}{b^2}}\,dc$
$=2b^2 + \frac{4a}{b}\int_{0}^{b}\sqrt{b^2-c^2}\,dc$
$=2b^2 + \frac{4a}{b}(\frac{1}{2}(c\sqrt{b^2-c^2}+b^2*arcsin\frac{c}{b}))\,|_{0}^{b}$
$=2b^2 + \frac{2a}{b}(c\sqrt{b^2-c^2}+b^2*arcsin\frac{c}{b})\,|_{0}^{b}$
$=2b^2 + \frac{2a}{b}(b^2*\frac{\pi}{2})$
$=2b^2 + ab\pi$
所以,$E=\frac{F(c)}{b}=2b+a\pi$
转载于:https://www.cnblogs.com/fuzhihong0917/p/9445274.html
2018 Multi-University Training Contest 6-oval-and-rectangle(hdu 6362)-题解相关推荐
- Sichuan University Programming Contest 2018 Preliminary
嗯为了防止大家AK,所以这次的A题和K题我们就当做不存在好了! 经历了昨天写了两个多小时的博客没保存的心态炸裂,今天终于下了个Markdown.所以我猜这篇的格式应该会更好看一点! 好吧废话不多说 题 ...
- 2018 Multi-University Training Contest 3 Problem F. Grab The Tree 【YY+BFS】
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=6324 Problem F. Grab The Tree Time Limit: 2000/1000 MS ...
- 2018 Multi-University Training Contest 4 Problem E. Matrix from Arrays 【打表+二维前缀和】
任意门:http://acm.hdu.edu.cn/showproblem.php?pid=6336 Problem E. Matrix from Arrays Time Limit: 4000/20 ...
- 2021 HZNU Winter Training Day 17 (2018 German Collegiate Programming Contest (GCPC 18))
2021 HZNU Winter Training Day 17 (2018 German Collegiate Programming Contest (GCPC 18)) 题目 A B C D E ...
- 2018 Multi-University Training Contest 7 Age of Moyu
Age of Moyu 来追梦 Problem Description Mr.Quin love fishes so much and Mr.Quin's city has a nautical sy ...
- HDU 6091 - Rikka with Match | 2017 Multi-University Training Contest 5
思路来自 某FXXL 不过复杂度咋算的.. /* HDU 6091 - Rikka with Match [ 树形DP ] | 2017 Multi-University Training Conte ...
- HDU 6051 - If the starlight never fade | 2017 Multi-University Training Contest 2
/* HDU 6051 - If the starlight never fade [ 原根,欧拉函数 ] | 2017 Multi-University Training Contest 2 题意: ...
- HDU 6058 - Kanade's sum | 2017 Multi-University Training Contest 3
/* HDU 6058 - Kanade's sum [ 思维,链表 ] | 2017 Multi-University Training Contest 3 题意:给出排列 a[N],求所有区间的第 ...
- 2017 Multi-University Training Contest - Team 3 Kanade's sum hd6058
地址:http://acm.split.hdu.edu.cn/showproblem.php?pid=6058 题目: Kanade's sum Time Limit: 4000/2000 MS (J ...
最新文章
- CheckCode.js 前端验证码插件
- 分享文章《控制情绪,享受人生》
- 尝试修改LabelImg,将以对顶角画框改成以对角线相交点向四周画框
- QT的QNdefRecord类的使用
- 《绅士》Typecho个人博客模板主题
- 随想录(爬虫的几个技巧)
- oracle中job无法正常运行,如何排查
- LinQ—Lambda表达式
- Python sklearn 实现过采样和欠采样
- U盘被写保护不能重新格式化
- 矩阵标准型的系数是特征值吗_「线性代数」根据特征值,将二次型化为标准形、规范形...
- Toast基本使用方法
- 通过EasyPOI导入excel数据
- 移动智能终端之应用商店和应用的安全管理机制(笔记四)
- eacharts y轴留白策略
- 微信小程序简单实现类似饿了么,美团文字公告告示垂直循环滚动效果
- html怎样用for循环添加表格,萌新提问!!!如何用for循环循环表单?
- 一加手机怎么导出照片_一加5t怎么才能把手机相片上传到电脑上?
- asp毕业设计——基于asp+sqlserver的个人日志系统设计与实现(毕业论文+程序源码)——个人日志系统
- Leetcode 709 To Lower Case
热门文章
- C语言编写Scheme解释器,C语言编写logo语言解释器 ,求高手指导
- 加载模型预测时出现Dst tensor is not initialized.
- python怎么输出小数部分_python 输出小数控制
- python 杂记(二)
- Linux利用子命令m,Linux mdir命令
- Leetcode70场双周赛-第一题2144. 打折购买糖果的最小开销
- leetCode-88. 合并两个有序数组
- 自然语言处理期末复习(2)中文分词
- 【重庆】2021年下半年软考报考时间及通知
- C#中通过单例模式以及Dictionary实现键值对的映射,通过key获取value