|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
|
2010-4-29 07:49 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
bc是和Unix那个差不多的bc吗?
Is bc the same as the bc for Unix?
|

 |
|
2010-4-29 17:03 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by HAT at 2010-4-29 17:03:
bc是和Unix那个差不多的bc吗?
是啊
gunwin32版本的
Originally posted by HAT at 2010-4-29 17:03:
Is bc similar to the Unix bc?
Yes
The gunwin32 version
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2010-4-29 17:10 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
|
2010-4-29 17:11 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
还有一个叫MATH.EXE 的命令行工具,功能非常弱,不干脆不推荐了。
There is also a command-line tool called MATH.EXE, which has very limited functionality. Since it's not straightforward, it's not recommended.
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2010-4-29 17:14 |
|
|
pdanniel66
初级用户
 
积分 68
发帖 64
注册 2009-5-23
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Is lmp.exe tool Windows version ?
Is lmp.exe tool Windows version ?
|
|
2010-4-30 07:12 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
|
2010-4-30 08:28 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
我试了试,很失望啊,
lmp 算 2+1/3
显示结果为2! 怎么连浮点数都不支持!
bc不支持中缀表达式,算的时候还要自己先把中缀化为后缀,试问谁有这心情?
还是math简单实用,
I tried it, very disappointed,
lmp calculates 2+1/3
displays result as 2! Why doesn't it even support floating-point numbers!
bc doesn't support infix expressions, and when calculating, you have to convert infix to postfix by yourself. Who has the mood for that?
Still, math is simple and practical,
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2010-5-3 22:26 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
哈哈,是吗?
bc.exe和LMP.EXE我都用得很好
唯独不爽MATH.EXE,功能太弱.
你说的支持是浮点数是指用浮点数表示计算结果?
我的数学比较悲惨,估计都比不了初中水平
==我看看/
还有lmp.exe 是2001年之后就再也没有人更新的了
Last edited by yishanju on 2010-5-3 at 22:47 ]
Haha, is that so?
I use bc.exe and LMP.EXE very well
Only unhappy with MATH.EXE, too weak in function.
You mean support for floating point numbers means using floating point numbers to represent the calculation result?
My math is miserable, probably not even comparable to junior high school level
==I'll take a look/
Also, lmp.exe has not been updated by anyone since 2001
Last edited by yishanju on 2010-5-3 at 22:47 ]
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2010-5-3 22:35 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
bc.exe 是中缀表达式计算命令
dc.exe 是后缀的
bc.exe is a command for evaluating infix expressions
dc.exe is for postfix
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2010-5-3 22:52 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
echo off
lmp -p 20 "2+1/3"
echo lmp.exe好冤啊
pause
\脚本\批处理计算>echo off
2.33333333333333348136
lmp.exe好冤啊
请按任意键继续. . .
```batch
echo off
lmp -p 20 "2+1/3"
echo lmp.exe is so wronged
pause
\Script\Batch Calculation>echo off
2.33333333333333348136
lmp.exe is so wronged
Press any key to continue. . .
```
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2010-5-3 23:01 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
...居然出这结果了.
汗
...This result actually came out. Sweat
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2010-5-3 23:07 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
我现在才看到,我本是给你加5分的,结果成了扣15分,汗的很
I just saw it now. I was going to add 5 points for you, but it turned into deducting 15 points. So sweaty.
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2010-5-3 23:22 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
我是这样用BC.exe来计算阶乘的..
BC命令是号称任意精度计算器,
GUNWIN32的BC.EXE 可以算出1800的阶乘.
setlocal EnableDelayedExpansion
for /l %%a in (2,1,18) do (
set m=!m!*%%a
set a=%%a
)
echo %m%|bc.exe
\脚本\批处理计算>echo 1*2*3*4*5*6*7*8*9*10*11*12*13*14*15*16*17*18 | bc.exe
6402373705728000
pause
Last edited by yishanju on 2010-5-3 at 23:27 ]
This is how I use BC.exe to calculate factorials..
The BC command is claimed to be an arbitrary-precision calculator,
GUNWIN32's BC.EXE can calculate the factorial of 1800.
setlocal EnableDelayedExpansion
for /l %%a in (2,1,18) do (
set m=!m!*%%a
set a=%%a
)
echo %m%|bc.exe
\Scripts\Batch processing calculation>echo 1*2*3*4*5*6*7*8*9*10*11*12*13*14*15*16*17*18 | bc.exe
6402373705728000
pause
Last edited by yishanju on 2010-5-3 at 23:27 ]
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2010-5-3 23:24 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 15 楼』:
Re 8 楼
使用 LLM 解释/回答一下
math如何让结果保留小数点后指定位数?
How to make the result of math retain a specified number of decimal places?
|

 |
|
2010-5-4 10:23 |
|