码迷,mamicode.com
首页 > 其他好文 > 详细

Coherent Calculator

时间:2019-10-13 11:29:38      阅读:85      评论:0      收藏:0      [点我收藏+]

标签:color   style   auto   com   display   mic   border   number   按钮   

技术图片

计算逻辑

输入想要的参数后点击以下按钮进行计算和调整:

  • Formula
  • Bigger N
  • Smaller N
  • Bigger M
  • Smaller M

所以在这个策略中Ft被Fixed在输入的值,其他的三个参数会按需调整。

Formula

         Calculate stretegy
         1. Force N to Nth power of 2
         2. With Fs and Ft fixed, calculate M based on N
         3. Force calculated M to the nearest prime number 
         4. Recalculate Fs based on the resulted M   

Bigger N

         Calculate stretegy
         1. Force nudN to (N+1)th power of 2
         2. With N and Ft fixed, calculate M based on given Fs
         3. Force calculated M to the nearest prime number 
         4. Recalculate Fs based on the calculated M

Smaller N

         Calculate stretegy
         1. Force nudN to (N-1)th power of 2
         2. With Fs and Ft fixed, calculate M based on N
         3. Force calculated M to the nearest prime number 
         4. Recalculate Fs based on the calculated M

Bigger M

         Calculate stretegy
         1. Force cbboxM to the bigger prime number 
         2. With Fs and Ft fixed, calculate the N with the resulted M;

Smaller M

         Calculate stretegy
         1. Force cbboxM to the smaller prime number 
         2. With Fs and Ft fixed, calculate the N with the resulted M;

Coherent Calculator

标签:color   style   auto   com   display   mic   border   number   按钮   

原文地址:https://www.cnblogs.com/lyh523329053/p/11664797.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!