当前位置:网站首页>The use of PowerShell functions in mathematical expressions
The use of PowerShell functions in mathematical expressions
2022-06-22 01:18:00 【winux】
I have had a try these days powershell, The use of a function inside made me very angry .
Customize a function first function g($x) = { $x*$x }
And then by command g(5)+g(5), Actually output 25, instead of 50!
But found , If you use it like this
$a = g(5)
$b = g(5)
$a+$b
Can output 50
Finally, I found out , That's what it says
(g(5))+(g(5)), perhaps (g 5) + (g 5)
To output 50
I really don't know what to say .
边栏推荐
- 手写数据库连接池
- 【环境踩坑】在自己电脑上搭建FastDFS
- Cancellation meeting and automatic refund processing of message queue
- 活动窗口(active),焦点窗口(focused),前台窗口(foreground)的区别
- Install tensorflow and transformer on Orange Pie orangepi4b
- 4G/wifi 能耗计量插座-监测电压电流功率
- 对“基于tensorflow+RNN的新浪新闻文本分类”一文的图示化理解
- [environmental footprint] set up fastdfs on your own computer
- Difference between integer and int
- Spark RDD case: word frequency statistics
猜你喜欢

4g/wifi energy consumption metering socket - monitoring voltage, current and power

2. add two numbers

2. 两数相加

pytorch学习06:Tensor维度变换
![[environment stepping on the pit] open the picture with OpenCV and report an error](/img/6d/4679cfebf2dfd43566c976d435ea84.png)
[environment stepping on the pit] open the picture with OpenCV and report an error

消息队列之发送 Webhook 实现跨应用异步回调

Summary of new MySQL 8.0 features

pytorch学习05:索引和切片

Cancellation meeting and automatic refund processing of message queue

【DailyFresh】课程记录
随机推荐
find 查找不同扩展名的文件
判断系统CPU是否空闲
BigDecimal basic use
Compilation principle - recursive descent subroutine method
eVC4编的程序不能在emulator上运行
对知识图谱与深度学习的关系理解
Pytorch learning 02: handwritten digit recognition
English grammar_ Adverb_ fairly / rather
Pytorch learning 05: indexing and slicing
[工程构建] cmake创建Release和Debug工程
3371. comfortable cow
[redis] install redis in Ubuntu and the basic usage and configuration of redis
【环境踩坑】使用FastDFS测试上传文件时报错
pytorch学习02:手写数字识别
【环境踩坑】在自己电脑上搭建FastDFS
判断String类型是否为空,判断list集合是否为空
SQL statement - permission management
[gstreamer] plug in writing - Test Program
Simple sorting of RNN
聚宽 - 简单策略试验