Calca for Windows(文本编辑器/符号计算器)

Calca for Windows(文本编辑器/符号计算器)

Calca 第一次使用,是在Mac版,方便的用法,可以定义函数名,做自己的计算公式,只需要录入数字,即可完成一系列的运算。现在工作换到Windows环境,找这个软件,终于找到可以使用的版本了,记录下来,也方便大家试用。
下载链接:https://download.csdn.net/download/acieroyer/86508935
在软件中,提供一系列实例,帮助您开始从房屋抵押贷款到动力学。所有这些例子都在Calca本身中完全解释。是非常方便实用的。
Windows版本不支持中文录入,用拼音或者单次字母都是还可以的。

简单使用说明

=>这个组合,表示输出结果

1、数字计算

8+9=>,自动输出结果17

2、变量计算

更加复杂的计算,又或是变量与方程——这里的“=>”就像一个指向答案的箭头。
比如常用的计算关系如下,

33x - 10y = 369
y=6
x=> 

输入以上关系,自动输出结果为13

3、函数方程式计算

函数方程式计算,可以是字母的变量,例如:

5a+2m=10c
m=>

自动计算结果为m=> -2.5 a + 5 c
在这里插入图片描述

实例1

我有一个常用计算,比如每次出差费用需要计算,就是住宿酒店单价*天数,再加上机票就是总价,那我提前列好公式,每次修改其中的单价和天数,自动汇总价格。
这里举例比较简单,如果计算关系复杂,那么用这个工具就体现出来便捷了。
在这里插入图片描述

官网举例

原链接:http://calca.io/examples

Fixed-rate Mortgage
I'm looking to buy a house. Here in Seattle, you can buy a condo for about $250,000,
 or you can splurge to get a house on a bit of land for $350,000. Let's splurge...

price = $350,000
down payment = 20% * price => $70,000
finance amount
  = price - down payment
  => $280,000

interest rate = 3.7%/year
term = 30year

n = term * 12/year => 360
r = interest rate / (12/year) => 0.0031

monthly payment
  = r/(1 - (1 + r)^(-n)) * finance amount
  => $1,288.7924
Looks like if I don't mind dropping $70,000, I can get a nice place for about $1,300 a month.

Try editing the price and interest rate to see how much your dream home will cost.

官网实例1

程序自带实例-绘图

在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
文本计算器》是一款为经常需要使用计算器的用户而设计的软件,该软件使用简单、方便,不在注册表中写入任何字节,实为是一款绿色软件。 当需要计算数据时,在窗口中输入整个表达式(表达式可以是加+、减-、乘*、除/、平方^、括号(),以及数学函数组合),按回车后可自动计算出结果,计算方法一目了然,便于查找计算中可能出现的错误。 支持的数学函数:cos(), sin(), tg(), ctg(), abs(), sgn() or sign(), sqrt(), ln(),sh() or sinh(), ch() or cosh(), th() or tanh(),cth() or coth(), heaviside()。 文本计算器采用多语言界面,方便国外朋友使用。 一、用法: 1、文本计算器具有关闭时是否保存计算结果的功能、计算结果的小数位选择功能,以及自动更新功能; 2、文本计算器打开时,将会自动加载上次的计算结果; 3、公式按钮中加入公式计算功能,公式框按回车可进行公式固定而数值变化的计算;; 4、输入数学表达式后,按回车键,自动计算结果; 5、一个表达式必须在一行内全部输入; 6、表达式可以是加+、减-、乘*、除/、平方^、括号(),以及数学函数组合。 二、支持的数学函数: 1、cos(), sin(), tg(), ctg(), abs(), sgn() or sign(), sqrt(), ln(),sh() or sinh(), ch() or cosh(), th() or tanh(),cth() or coth(), heaviside(); 2、示例:1+sin(30)(其中30为弧度)按回车键后显示1+sin(30)=0.012。 2010-03-06 21:11 V4.73 1、增加清除的快捷方式CTRL+D 2010-5-19 21:01 V4.76 1、去除按键声音功能,减少文件体积。
以下是一个使用白塞尔方法进行大地主题反算的 Python 代码示例: ```python import math a = 6378137.0 b = 6356752.3142 f = (a - b) / a e = math.sqrt(2 * f - pow(f, 2)) PI = math.pi def rad2deg(rad): return rad / PI * 180.0 def deg2rad(deg): return deg * PI / 180.0 def calcM(lat): W = math.sqrt(1 - pow(e * math.sin(lat), 2)) return a * (1 - pow(e, 2)) / pow(W, 3) def calcN(lat): W = math.sqrt(1 - pow(e * math.sin(lat), 2)) return a / W def calcT(lat): return pow(math.tan(lat), 2) def calcC(lat): W = math.sqrt(1 - pow(e * math.sin(lat), 2)) return pow(e * math.cos(lat) / W, 2) def calcA(lat): W = math.sqrt(1 - pow(e * math.sin(lat), 2)) return (a / W) * (1 - pow(e, 2)) / pow(W, 2) def calcS(lat1, lon1, lat2, lon2): dx = lon2 - lon1 dy = lat2 - lat1 lat1_rad = deg2rad(lat1) lat2_rad = deg2rad(lat2) dx_rad = deg2rad(dx) N1 = calcN(lat1_rad) M1 = calcM(lat1_rad) T1 = calcT(lat1_rad) C1 = calcC(lat1_rad) A1 = calcA(lat1_rad) W1 = math.sqrt(1 - pow(e * math.sin(lat1_rad), 2)) cos_lat1 = math.cos(lat1_rad) sin_lat1 = math.sin(lat1_rad) sin2_lat1 = pow(sin_lat1, 2) cos2_lat1 = pow(cos_lat1, 2) W2 = math.sqrt(1 - pow(e * math.sin(lat2_rad), 2)) cos_lat2 = math.cos(lat2_rad) sin_lat2 = math.sin(lat2_rad) sin2_lat2 = pow(sin_lat2, 2) cos2_lat2 = pow(cos_lat2, 2) Wx = W2 - W1 Wx2 = pow(Wx, 2) Wy = (cos_lat2 * dx_rad) Wy2 = pow(Wy, 2) M2 = calcM(lat2_rad) N2 = calcN(lat2_rad) T2 = calcT(lat2_rad) C2 = calcC(lat2_rad) A2 = calcA(lat2_rad) M = (M1 + M2) / 2.0 mx = dx_rad * cos_lat1 * M my = dy * M m = math.sqrt(pow(mx, 2) + pow(my, 2)) latm = lat1_rad + (dy - (T1 + C1) * (pow(dy, 3) / 6.0) + (5.0 - 18.0 * T1 + pow(T1, 2) + 72.0 * C1 - 58.0 * A1) * (pow(dy, 5) / 120.0)) / M Wm = math.sqrt(1 - pow(e * math.sin(latm), 2)) Nm = a / Wm Tm = pow(math.tan(latm), 2) Cm = pow(e * math.cos(latm) / Wm, 2) Am = (a / Wm) * (1 - pow(e, 2)) / pow(Wm, 2) theta = math.atan(mx / my) if my < 0: theta += PI s = m * math.cos(theta) + (Wx2 - Wy2) / (2.0 * Nm) return s def calcAzimuth(lat1, lon1, lat2, lon2): lat1_rad = deg2rad(lat1) lat2_rad = deg2rad(lat2) dLon_rad = deg2rad(lon2 - lon1) y = math.sin(dLon_rad) * math.cos(lat2_rad) x = math.cos(lat1_rad) * math.sin(lat2_rad) - math.sin(lat1_rad) * math.cos(lat2_rad) * math.cos(dLon_rad) azimuth_rad = math.atan2(y, x) return rad2deg(azimuth_rad) lat1 = 22.331 lon1 = 114.264 lat2 = 22.351 lon2 = 114.162 s = calcS(lat1, lon1, lat2, lon2) azimuth = calcAzimuth(lat1, lon1, lat2, lon2) print("S = ", s, "m") print("Azimuth = ", azimuth, "deg") ``` 在这个示例中,我们首先定义了一些常量,例如地球椭球体的长半轴 `a`、短半轴 `b`、扁率 `f` 和第一偏心率 `e`。然后,我们实现了一些函数来计算需要用到的各个参数,例如子午线曲率半径 `M`、卯酉圈曲率半径 `N`、子午线弧长公式中的参数 `T`、`C` 和 `A`,以及两点之间的大地线长度 `S` 和方位角 `azimuth`。最后,我们在 `main` 函数中调用这些函数来计算两点之间的大地线长度和方位角,并将它们输出到控制台上。 需要注意的是,在实现白塞尔方法时,需要将角度转换为弧度计算。在本示例中,我们使用了 `deg2rad` 和 `rad2deg` 两个函数来进行角度和弧度的转换。同时,为了方便起见,我们将计算中经常用到的参数都定义为常量,以免在多处使用时出现错误。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值