Giter VIP home page Giter VIP logo

calculator's Introduction

Calculator

	This project is writen just for practise. It's a simple calculator

application. This calculator implemented functions below:
	+                         加法
	-                         减法
	*                         乘法
	/                         除法
	^                         乘方
	%                         取模运算
	!                         阶乘
	=                         判等
	&                         按位与运算
	|                         按位或运算
	~                         按位取反
	&&                        逻辑与运算
	||                        逻辑或运算
	!                         逻辑非运算
	()                        括号
	fib(n)                    计算第 n 个斐波那契数
	sqrt(n)                   计算 n 的平方根
	cbrt(n)                   计算 n 的立方根



	+                         Addition
	-                         Subtraction
	*                         Multiplication
	/                         Division
	^                         Exp
	%                         Mod
	!                         Factorial
	=                         Judge if equal
	&                         按位与运算
	|                         按位或运算
	~                         按位取反
	&&                        逻辑与运算
	||                        逻辑或运算
	!                         逻辑非运算
	()                        括号
	fib(n)                    Calculate the nth fibonacci number
	sqrt(n)                   Calculate the square root of n
	cbrt(n)                   Calculate the cube root of n

    运行方式:
    方法一: 使用 quicklisp 加载
        1. 将源代码文件置于 ~/quicklisp/local-project/ 目录下
	2. 在 Common Lisp 的 REPL 中执行 (quickload :calculator)
	3. 执行函数 (calculator:menu) 即可运行该计算器的 repl
	4. 每个表达式以分号 ; 结尾, 如果要退出, 输入 exit; 然后回车

    方法二: 使用 asdf 加载
	1. 在 Common Lisp 的 REPL 中执行 (load "path/of/calculator.asd")
	2. 然后执行 (asdf:load-system :calculator)
	3. 同方法一
	4. 同方法一

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.