Giter VIP home page Giter VIP logo

largenumbercomputer's Introduction

大數計算機

基本功能

  • 四則運算和括號→+-*/()
  • 指數運算和階層→^!
  • 符號優先度如下:
優先度 運算子 相同層級的運算順序
1 ()
2 ! 左至右
3 ^ 右至左
4 +-(代表正負) 右至左
5 */ 左至右
6 +-(代表加減) 左至右
  • 整數變數會將小數點後的數字全部捨去,若要宣告成小數請加上小數點。(EX:1.0+2)
  • 支援小數運算,當運算式中出現小數時,答案會以小數表示(到小數點後100位)
  • 次方只能進行0.5的倍數,其餘將顯示錯誤。(EX:1^0.3)

進階功能

  • 輸入指令"Set Integer (變數名稱)=(運算式)"可以設置整數變數。
  • 輸入指令"Set Decimal (變數名稱)=(運算式)"可以設置小數變數。
  • 重新輸入相同名稱的變數將會覆蓋其值。
  • 輸入指令"(變數名稱)=(運算式)"會重新覆值。

已知可能的錯誤

  • 小數進行過大的次方運算時,程式可能當機
    • 可能原因是約分的部分沒做好,效率太慢。
  • 某些情況下的小數精度不正確
    • 原因不明
  • 變數賦值可能錯誤
    • 原因不明
  • 無法判斷次方是否為0.5的倍數,小數點後的將直接被當作0.5(開根號)進行運算。
    • 沒有做相關處理
  • 沒有實作API中的項目,請勿使用。

備註

  • 時間因素,程式碼十分紊亂,註解也沒有打得很詳細,請見諒。
  • 檔案中的測資部分部分錯誤,應該已經附註在裡面。如果對此有疑問,請自行google正確答案。
  • API的部分為錯誤是正常的。
  • 專案協力人員:[name=linforgg]

[name=Zero871015][time=Fri, Jun 1, 2018 11:25 AM]

largenumbercomputer's People

Contributors

zero871015 avatar linforgg avatar

Stargazers

Hans Chiu avatar

Watchers

James Cloos avatar

Forkers

a3265811

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.