点击登录

小程序 计算器 1.0.2 新增对数、阶乘

免费资源,对lst的计算器再次修改

主要改动:
1.每次输入数学符号时会回退到数字键盘页,增强输入连贯性
2.新增对数计算,包括常用对数、自然对数、任意底数对数(log(真数/底数) log(8/2) = 3 即 log₂8)
3.新增阶乘
4.新增二维码跳转当前帖子?

对计算器的说明(AI编写-人工校对):

🔢 基础运算
数字与符号:点击 0–9、.、+、-、*、/、(、) 进行常规计算
示例:(5 + 3) * 2 = 16
清除:
C:清空全部输入
⌫(删除键):删除最后一个字符
等于:点击 = 计算结果

⚙️ 幂运算(次方)
使用 ** 表示幂(JavaScript 标准语法)
示例:
2**3 → 8(2 的 3 次方)
4**(1/2) → 2(平方根)
8**(-1) → 0.125(倒数)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 提示:负指数或分数指数请加括号,如 2*(-3)、27*(1/3)

➗ 取余运算(%)
% 表示取余(模运算),不是百分比!
语法:a % b → 返回 a 除以 b 的余数
示例:
10 % 3 → 1
15 % 4 → 3
7 % 2 → 1
注意:结果符号与被除数一致,如 -7 % 3 → -1
❌ 不支持百分比(如 50% 会被当作 50 % [下一个数],通常导致错误)

📐 数学函数(点击“更多”展开)
按钮 功能 输入格式 示例
√ 平方根 sqrt(x) sqrt(25) → 5
c 余弦 cos(x) cos(0) → 1
s 正弦 sin(x) sin(PI/2) → 1
t 正切 tan(x) tan(PI/4) → 1
x! 阶乘 fact(x) fact(4) → 24
lg 常用对数(底数 10) lg(x) lg(100) → 2
log 任意底数对数 log(真数/底数) log(8/2) → 3 (即 log₂8)
ln 自然对数(底数 e) ln(x) ln(e) → 1
⚠️ 注意:
所有函数需手动补全右括号,如 sin(PI/2)
三角函数参数为弧度制(π 弧度 = 180°)
阶乘仅接受 非负整数,范围 0 ≤ n ≤ 170

🔢 常量
Π → 圆周率 π(≈3.1415926535)
e → 自然常数 e(≈2.7182818284)
示例:e**PI、PI*e、cos(PI) 等均可直接使用

📌 使用技巧
嵌套调用:fact(sqrt(16)) → fact(4) → 24
混合表达式:2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
精确开方:16**(1/4) → 2(四次方根)
负数处理:(-2)**3 → -8(必须加括号)

❌ 常见错误
错误输入 原因 正确写法
log(8,2) 不支持逗号分隔 log(8/2)
sin 30 缺少括号 sin(30)(且 30 是弧度!)
50% 单独 % 无意义 % 必须在两个数之间,如 100%7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 
Free resources, further modifications to the LST calculator .

Major changes:
1. Each time a mathematical symbol is entered, the user will be redirected to the numeric keypad page, enhancing input consistency.
2. Added logarithm calculation, including common logarithms, natural logarithms, and logarithms with arbitrary bases (log(argument/base) log(8/2) = 3, i.e., log₂8).
3. Added factorial
4. Can the QR code be added to jump to the current post?

Instructions for the calculator (AI-generated, human-proofread):

🔢 Basic Operations
Numbers and Symbols: Click 0–9, ., +, -, *, /, (,) to perform regular calculations.
Example: (5 + 3) * 2 = 16
Clear:
C: Clear all input
⌫ (Delete key): Deletes the last character.
Equals: Click = Calculation Result

⚙️ Exponentiation (power)
Use ** to represent exponentiation (JavaScript standard syntax)
Example:
2**3 → 8 (2 to the power of 3)
4**(1/2) → 2 (square root)
8**(-1) → 0.125 (reciprocal)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 Tip: Please enclose negative or fractional exponents in parentheses, such as 2* (-3) or 27* (1/3).

➗ Modulo operation (%)
% represents the modulo operation, not a percentage!
Syntax: a % b → Returns the remainder when a is divided by b
Example:
10% 3 → 1
15% 4 → 3
7% 2 → 1
Note: The sign of the result should be the same as that of the dividend, e.g., -7 % 3 → -1
❌ Percentages are not supported (e.g., 50% will be treated as 50% [the next number], which usually leads to errors).

📐 Mathematical Functions (Click "More" to expand)
Button function input format example
√ Square root sqrt(x) sqrt(25) → 5
c. Cosine cos(x) cos(0) → 1
sine sin(x) sin(PI/2) → 1
t = tangent tan(x) tan(PI/4) → 1
x! factorial fact(x) fact(4) → 24
lg is the common logarithm (base 10): lg(x) lg(100) → 2
logarithm with any base: log(argument/base) log(8/2) → 3 (i.e. log₂8)
ln(natural logarithm, base e) ln(x) ln(e) → 1
⚠️ Note:
All functions require manual completion of the closing parenthesis, such as sin(PI/2).
The parameters of trigonometric functions are in radians (π radians = 180°).
Factorials only accept non-negative integers, in the range 0 ≤ n ≤ 170.

🔢 Constants
Π → Pi (≈3.1415926535)
e → natural constant e (≈2.7182818284)
Examples: e**PI, PI*e, cos(PI), etc. can all be used directly.

📌 Usage Tips
Nested calls: fact(sqrt(16)) → fact(4) → 24
Mixed expression: 2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
Exact square root: 16**(1/4) → 2 (fourth root)
Negative number handling: (-2)**3 → -8 (parentheses are required)

❌ Common Mistakes
Correct way to write the reason for incorrect input
log(8,2) does not support comma-separated log(8/2).
The expression sin 30 is missing parentheses sin(30) (and 30 is in radians!).
50% alone % meaningless % must be between two numbers, such as 100% 7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
Excellent
 
Free resources, further modifications to the LST calculator .

Major changes:
1. Each time a mathematical symbol is entered, the user will be redirected to the numeric keypad page, enhancing input consistency.
2. Added logarithm calculation, including common logarithms, natural logarithms, and logarithms with arbitrary bases (log(argument/base) log(8/2) = 3, i.e., log₂8).
3. Added factorial
4. Can the QR code be added to jump to the current post?

Instructions for the calculator (AI-generated, human-proofread):

🔢 Basic Operations
Numbers and Symbols: Click 0–9, ., +, -, *, /, (,) to perform regular calculations.
Example: (5 + 3) * 2 = 16
Clear:
C: Clear all input
⌫ (Delete key): Deletes the last character.
Equals: Click = Calculation Result

⚙️ Exponentiation (power)
Use ** to represent exponentiation (JavaScript standard syntax)
Example:
2**3 → 8 (2 to the power of 3)
4**(1/2) → 2 (square root)
8**(-1) → 0.125 (reciprocal)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 Tip: Please enclose negative or fractional exponents in parentheses, such as 2* (-3) or 27* (1/3).

➗ Modulo operation (%)
% represents the modulo operation, not a percentage!
Syntax: a % b → Returns the remainder when a is divided by b
Example:
10% 3 → 1
15% 4 → 3
7% 2 → 1
Note: The sign of the result should be the same as that of the dividend, e.g., -7 % 3 → -1
❌ Percentages are not supported (e.g., 50% will be treated as 50% [the next number], which usually leads to errors).

📐 Mathematical Functions (Click "More" to expand)
Button function input format example
√ Square root sqrt(x) sqrt(25) → 5
c. Cosine cos(x) cos(0) → 1
sine sin(x) sin(PI/2) → 1
t = tangent tan(x) tan(PI/4) → 1
x! factorial fact(x) fact(4) → 24
lg is the common logarithm (base 10): lg(x) lg(100) → 2
logarithm with any base: log(argument/base) log(8/2) → 3 (i.e. log₂8)
ln(natural logarithm, base e) ln(x) ln(e) → 1
⚠️ Note:
All functions require manual completion of the closing parenthesis, such as sin(PI/2).
The parameters of trigonometric functions are in radians (π radians = 180°).
Factorials only accept non-negative integers, in the range 0 ≤ n ≤ 170.

🔢 Constants
Π → Pi (≈3.1415926535)
e → natural constant e (≈2.7182818284)
Examples: e**PI, PI*e, cos(PI), etc. can all be used directly.

📌 Usage Tips
Nested calls: fact(sqrt(16)) → fact(4) → 24
Mixed expression: 2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
Exact square root: 16**(1/4) → 2 (fourth root)
Negative number handling: (-2)**3 → -8 (parentheses are required)

❌ Common Mistakes
Correct way to write the reason for incorrect input
log(8,2) does not support comma-separated log(8/2).
The expression sin 30 is missing parentheses sin(30) (and 30 is in radians!).
50% alone % meaningless % must be between two numbers, such as 100% 7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 
免费资源,对lst的计算器再次修改

主要改动:
1.每次输入数学符号时会回退到数字键盘页,增强输入连贯性
2.新增对数计算,包括常用对数、自然对数、任意底数对数(log(真数/底数) log(8/2) = 3 即 log₂8)
3.新增阶乘
4.新增二维码跳转当前帖子?

对计算器的说明(AI编写-人工校对):

🔢 基础运算
数字与符号:点击 0–9、.、+、-、*、/、(、) 进行常规计算
示例:(5 + 3) * 2 = 16
清除:
C:清空全部输入
⌫(删除键):删除最后一个字符
等于:点击 = 计算结果

⚙️ 幂运算(次方)
使用 ** 表示幂(JavaScript 标准语法)
示例:
2**3 → 8(2 的 3 次方)
4**(1/2) → 2(平方根)
8**(-1) → 0.125(倒数)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 提示:负指数或分数指数请加括号,如 2*(-3)、27*(1/3)

➗ 取余运算(%)
% 表示取余(模运算),不是百分比!
语法:a % b → 返回 a 除以 b 的余数
示例:
10 % 3 → 1
15 % 4 → 3
7 % 2 → 1
注意:结果符号与被除数一致,如 -7 % 3 → -1
❌ 不支持百分比(如 50% 会被当作 50 % [下一个数],通常导致错误)

📐 数学函数(点击“更多”展开)
按钮 功能 输入格式 示例
√ 平方根 sqrt(x) sqrt(25) → 5
c 余弦 cos(x) cos(0) → 1
s 正弦 sin(x) sin(PI/2) → 1
t 正切 tan(x) tan(PI/4) → 1
x! 阶乘 fact(x) fact(4) → 24
lg 常用对数(底数 10) lg(x) lg(100) → 2
log 任意底数对数 log(真数/底数) log(8/2) → 3 (即 log₂8)
ln 自然对数(底数 e) ln(x) ln(e) → 1
⚠️ 注意:
所有函数需手动补全右括号,如 sin(PI/2)
三角函数参数为弧度制(π 弧度 = 180°)
阶乘仅接受 非负整数,范围 0 ≤ n ≤ 170

🔢 常量
Π → 圆周率 π(≈3.1415926535)
e → 自然常数 e(≈2.7182818284)
示例:e**PI、PI*e、cos(PI) 等均可直接使用

📌 使用技巧
嵌套调用:fact(sqrt(16)) → fact(4) → 24
混合表达式:2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
精确开方:16**(1/4) → 2(四次方根)
负数处理:(-2)**3 → -8(必须加括号)

❌ 常见错误
错误输入 原因 正确写法
log(8,2) 不支持逗号分隔 log(8/2)
sin 30 缺少括号 sin(30)(且 30 是弧度!)
50% 单独 % 无意义 % 必须在两个数之间,如 100%7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 
免费资源,对lst的计算器再次修改

主要改动:
1.每次输入数学符号时会回退到数字键盘页,增强输入连贯性
2.新增对数计算,包括常用对数、自然对数、任意底数对数(log(真数/底数) log(8/2) = 3 即 log₂8)
3.新增阶乘
4.新增二维码跳转当前帖子?

对计算器的说明(AI编写-人工校对):

🔢 基础运算
数字与符号:点击 0–9、.、+、-、*、/、(、) 进行常规计算
示例:(5 + 3) * 2 = 16
清除:
C:清空全部输入
⌫(删除键):删除最后一个字符
等于:点击 = 计算结果

⚙️ 幂运算(次方)
使用 ** 表示幂(JavaScript 标准语法)
示例:
2**3 → 8(2 的 3 次方)
4**(1/2) → 2(平方根)
8**(-1) → 0.125(倒数)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 提示:负指数或分数指数请加括号,如 2*(-3)、27*(1/3)

➗ 取余运算(%)
% 表示取余(模运算),不是百分比!
语法:a % b → 返回 a 除以 b 的余数
示例:
10 % 3 → 1
15 % 4 → 3
7 % 2 → 1
注意:结果符号与被除数一致,如 -7 % 3 → -1
❌ 不支持百分比(如 50% 会被当作 50 % [下一个数],通常导致错误)

📐 数学函数(点击“更多”展开)
按钮 功能 输入格式 示例
√ 平方根 sqrt(x) sqrt(25) → 5
c 余弦 cos(x) cos(0) → 1
s 正弦 sin(x) sin(PI/2) → 1
t 正切 tan(x) tan(PI/4) → 1
x! 阶乘 fact(x) fact(4) → 24
lg 常用对数(底数 10) lg(x) lg(100) → 2
log 任意底数对数 log(真数/底数) log(8/2) → 3 (即 log₂8)
ln 自然对数(底数 e) ln(x) ln(e) → 1
⚠️ 注意:
所有函数需手动补全右括号,如 sin(PI/2)
三角函数参数为弧度制(π 弧度 = 180°)
阶乘仅接受 非负整数,范围 0 ≤ n ≤ 170

🔢 常量
Π → 圆周率 π(≈3.1415926535)
e → 自然常数 e(≈2.7182818284)
示例:e**PI、PI*e、cos(PI) 等均可直接使用

📌 使用技巧
嵌套调用:fact(sqrt(16)) → fact(4) → 24
混合表达式:2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
精确开方:16**(1/4) → 2(四次方根)
负数处理:(-2)**3 → -8(必须加括号)

❌ 常见错误
错误输入 原因 正确写法
log(8,2) 不支持逗号分隔 log(8/2)
sin 30 缺少括号 sin(30)(且 30 是弧度!)
50% 单独 % 无意义 % 必须在两个数之间,如 100%7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 
免费资源,对lst的计算器再次修改

主要改动:
1.每次输入数学符号时会回退到数字键盘页,增强输入连贯性
2.新增对数计算,包括常用对数、自然对数、任意底数对数(log(真数/底数) log(8/2) = 3 即 log₂8)
3.新增阶乘
4.新增二维码跳转当前帖子?

对计算器的说明(AI编写-人工校对):

🔢 基础运算
数字与符号:点击 0–9、.、+、-、*、/、(、) 进行常规计算
示例:(5 + 3) * 2 = 16
清除:
C:清空全部输入
⌫(删除键):删除最后一个字符
等于:点击 = 计算结果

⚙️ 幂运算(次方)
使用 ** 表示幂(JavaScript 标准语法)
示例:
2**3 → 8(2 的 3 次方)
4**(1/2) → 2(平方根)
8**(-1) → 0.125(倒数)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 提示:负指数或分数指数请加括号,如 2*(-3)、27*(1/3)

➗ 取余运算(%)
% 表示取余(模运算),不是百分比!
语法:a % b → 返回 a 除以 b 的余数
示例:
10 % 3 → 1
15 % 4 → 3
7 % 2 → 1
注意:结果符号与被除数一致,如 -7 % 3 → -1
❌ 不支持百分比(如 50% 会被当作 50 % [下一个数],通常导致错误)

📐 数学函数(点击“更多”展开)
按钮 功能 输入格式 示例
√ 平方根 sqrt(x) sqrt(25) → 5
c 余弦 cos(x) cos(0) → 1
s 正弦 sin(x) sin(PI/2) → 1
t 正切 tan(x) tan(PI/4) → 1
x! 阶乘 fact(x) fact(4) → 24
lg 常用对数(底数 10) lg(x) lg(100) → 2
log 任意底数对数 log(真数/底数) log(8/2) → 3 (即 log₂8)
ln 自然对数(底数 e) ln(x) ln(e) → 1
⚠️ 注意:
所有函数需手动补全右括号,如 sin(PI/2)
三角函数参数为弧度制(π 弧度 = 180°)
阶乘仅接受 非负整数,范围 0 ≤ n ≤ 170

🔢 常量
Π → 圆周率 π(≈3.1415926535)
e → 自然常数 e(≈2.7182818284)
示例:e**PI、PI*e、cos(PI) 等均可直接使用

📌 使用技巧
嵌套调用:fact(sqrt(16)) → fact(4) → 24
混合表达式:2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
精确开方:16**(1/4) → 2(四次方根)
负数处理:(-2)**3 → -8(必须加括号)

❌ 常见错误
错误输入 原因 正确写法
log(8,2) 不支持逗号分隔 log(8/2)
sin 30 缺少括号 sin(30)(且 30 是弧度!)
50% 单独 % 无意义 % 必须在两个数之间,如 100%7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 
免费资源,对lst的计算器再次修改

主要改动:
1.每次输入数学符号时会回退到数字键盘页,增强输入连贯性
2.新增对数计算,包括常用对数、自然对数、任意底数对数(log(真数/底数) log(8/2) = 3 即 log₂8)
3.新增阶乘
4.新增二维码跳转当前帖子?

对计算器的说明(AI编写-人工校对):

🔢 基础运算
数字与符号:点击 0–9、.、+、-、*、/、(、) 进行常规计算
示例:(5 + 3) * 2 = 16
清除:
C:清空全部输入
⌫(删除键):删除最后一个字符
等于:点击 = 计算结果

⚙️ 幂运算(次方)
使用 ** 表示幂(JavaScript 标准语法)
示例:
2**3 → 8(2 的 3 次方)
4**(1/2) → 2(平方根)
8**(-1) → 0.125(倒数)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 提示:负指数或分数指数请加括号,如 2*(-3)、27*(1/3)

➗ 取余运算(%)
% 表示取余(模运算),不是百分比!
语法:a % b → 返回 a 除以 b 的余数
示例:
10 % 3 → 1
15 % 4 → 3
7 % 2 → 1
注意:结果符号与被除数一致,如 -7 % 3 → -1
❌ 不支持百分比(如 50% 会被当作 50 % [下一个数],通常导致错误)

📐 数学函数(点击“更多”展开)
按钮 功能 输入格式 示例
√ 平方根 sqrt(x) sqrt(25) → 5
c 余弦 cos(x) cos(0) → 1
s 正弦 sin(x) sin(PI/2) → 1
t 正切 tan(x) tan(PI/4) → 1
x! 阶乘 fact(x) fact(4) → 24
lg 常用对数(底数 10) lg(x) lg(100) → 2
log 任意底数对数 log(真数/底数) log(8/2) → 3 (即 log₂8)
ln 自然对数(底数 e) ln(x) ln(e) → 1
⚠️ 注意:
所有函数需手动补全右括号,如 sin(PI/2)
三角函数参数为弧度制(π 弧度 = 180°)
阶乘仅接受 非负整数,范围 0 ≤ n ≤ 170

🔢 常量
Π → 圆周率 π(≈3.1415926535)
e → 自然常数 e(≈2.7182818284)
示例:e**PI、PI*e、cos(PI) 等均可直接使用

📌 使用技巧
嵌套调用:fact(sqrt(16)) → fact(4) → 24
混合表达式:2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
精确开方:16**(1/4) → 2(四次方根)
负数处理:(-2)**3 → -8(必须加括号)

❌ 常见错误
错误输入 原因 正确写法
log(8,2) 不支持逗号分隔 log(8/2)
sin 30 缺少括号 sin(30)(且 30 是弧度!)
50% 单独 % 无意义 % 必须在两个数之间,如 100%7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 
免费资源,对lst的计算器再次修改

主要改动:
1.每次输入数学符号时会回退到数字键盘页,增强输入连贯性
2.新增对数计算,包括常用对数、自然对数、任意底数对数(log(真数/底数) log(8/2) = 3 即 log₂8)
3.新增阶乘
4.新增二维码跳转当前帖子?

对计算器的说明(AI编写-人工校对):

🔢 基础运算
数字与符号:点击 0–9、.、+、-、*、/、(、) 进行常规计算
示例:(5 + 3) * 2 = 16
清除:
C:清空全部输入
⌫(删除键):删除最后一个字符
等于:点击 = 计算结果

⚙️ 幂运算(次方)
使用 ** 表示幂(JavaScript 标准语法)
示例:
2**3 → 8(2 的 3 次方)
4**(1/2) → 2(平方根)
8**(-1) → 0.125(倒数)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 提示:负指数或分数指数请加括号,如 2*(-3)、27*(1/3)

➗ 取余运算(%)
% 表示取余(模运算),不是百分比!
语法:a % b → 返回 a 除以 b 的余数
示例:
10 % 3 → 1
15 % 4 → 3
7 % 2 → 1
注意:结果符号与被除数一致,如 -7 % 3 → -1
❌ 不支持百分比(如 50% 会被当作 50 % [下一个数],通常导致错误)

📐 数学函数(点击“更多”展开)
按钮 功能 输入格式 示例
√ 平方根 sqrt(x) sqrt(25) → 5
c 余弦 cos(x) cos(0) → 1
s 正弦 sin(x) sin(PI/2) → 1
t 正切 tan(x) tan(PI/4) → 1
x! 阶乘 fact(x) fact(4) → 24
lg 常用对数(底数 10) lg(x) lg(100) → 2
log 任意底数对数 log(真数/底数) log(8/2) → 3 (即 log₂8)
ln 自然对数(底数 e) ln(x) ln(e) → 1
⚠️ 注意:
所有函数需手动补全右括号,如 sin(PI/2)
三角函数参数为弧度制(π 弧度 = 180°)
阶乘仅接受 非负整数,范围 0 ≤ n ≤ 170

🔢 常量
Π → 圆周率 π(≈3.1415926535)
e → 自然常数 e(≈2.7182818284)
示例:e**PI、PI*e、cos(PI) 等均可直接使用

📌 使用技巧
嵌套调用:fact(sqrt(16)) → fact(4) → 24
混合表达式:2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
精确开方:16**(1/4) → 2(四次方根)
负数处理:(-2)**3 → -8(必须加括号)

❌ 常见错误
错误输入 原因 正确写法
log(8,2) 不支持逗号分隔 log(8/2)
sin 30 缺少括号 sin(30)(且 30 是弧度!)
50% 单独 % 无意义 % 必须在两个数之间,如 100%7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 
免费资源,对lst的计算器再次修改

主要改动:
1.每次输入数学符号时会回退到数字键盘页,增强输入连贯性
2.新增对数计算,包括常用对数、自然对数、任意底数对数(log(真数/底数) log(8/2) = 3 即 log₂8)
3.新增阶乘
4.新增二维码跳转当前帖子?

对计算器的说明(AI编写-人工校对):

🔢 基础运算
数字与符号:点击 0–9、.、+、-、*、/、(、) 进行常规计算
示例:(5 + 3) * 2 = 16
清除:
C:清空全部输入
⌫(删除键):删除最后一个字符
等于:点击 = 计算结果

⚙️ 幂运算(次方)
使用 ** 表示幂(JavaScript 标准语法)
示例:
2**3 → 8(2 的 3 次方)
4**(1/2) → 2(平方根)
8**(-1) → 0.125(倒数)
e**2 → ≈7.389
PI**2 → ≈9.8696
💡 提示:负指数或分数指数请加括号,如 2*(-3)、27*(1/3)

➗ 取余运算(%)
% 表示取余(模运算),不是百分比!
语法:a % b → 返回 a 除以 b 的余数
示例:
10 % 3 → 1
15 % 4 → 3
7 % 2 → 1
注意:结果符号与被除数一致,如 -7 % 3 → -1
❌ 不支持百分比(如 50% 会被当作 50 % [下一个数],通常导致错误)

📐 数学函数(点击“更多”展开)
按钮 功能 输入格式 示例
√ 平方根 sqrt(x) sqrt(25) → 5
c 余弦 cos(x) cos(0) → 1
s 正弦 sin(x) sin(PI/2) → 1
t 正切 tan(x) tan(PI/4) → 1
x! 阶乘 fact(x) fact(4) → 24
lg 常用对数(底数 10) lg(x) lg(100) → 2
log 任意底数对数 log(真数/底数) log(8/2) → 3 (即 log₂8)
ln 自然对数(底数 e) ln(x) ln(e) → 1
⚠️ 注意:
所有函数需手动补全右括号,如 sin(PI/2)
三角函数参数为弧度制(π 弧度 = 180°)
阶乘仅接受 非负整数,范围 0 ≤ n ≤ 170

🔢 常量
Π → 圆周率 π(≈3.1415926535)
e → 自然常数 e(≈2.7182818284)
示例:e**PI、PI*e、cos(PI) 等均可直接使用

📌 使用技巧
嵌套调用:fact(sqrt(16)) → fact(4) → 24
混合表达式:2**3 + lg(1000) - 10%3 → 8 + 3 - 1 = 10
精确开方:16**(1/4) → 2(四次方根)
负数处理:(-2)**3 → -8(必须加括号)

❌ 常见错误
错误输入 原因 正确写法
log(8,2) 不支持逗号分隔 log(8/2)
sin 30 缺少括号 sin(30)(且 30 是弧度!)
50% 单独 % 无意义 % 必须在两个数之间,如 100%7

Vela_Virtual_Device_band9-2025-11-24-13-13-32.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-50.webp
Vela_Virtual_Device_band9-2025-11-24-13-13-56.webp
 

*这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责

正在阅览本贴的用户

Home 首页
Home 资源
News 发现
Account 我的
顶部