当前位置:网站首页>【Lingo】运算符
【Lingo】运算符
2022-06-10 08:11:00 【XiYang-DING】
算术运算符
| 运算符 | 功能 | 说明 |
|---|---|---|
| + | 加 | - |
| - | 减 | - |
| * | 乘 | - |
| / | 除 | - |
| ^ | 根 | 开方也可以写成@sqrt() |
例子

x=2;
y=3*x^10+6/([email protected](x));
关系运算符
| 运算符 | 功能 |
|---|---|
| = | 等于 |
| <= | 小于等于 |
| >= | 大于等于 |
- 无>,<,但lingo会填上=
- 严格的表达a>10可以用:
b=10; e=0.00001; a-e>b;
逻辑运算符
| 分类 | 运算符 | 作用 |
|---|---|---|
| 数字之间 | #eq# | equal |
| #ne# | not equal | |
| #gt# | greater than 左大于右 | |
| #gn# | greater equal 左大于等于右 | |
| #lt# | less than 左小于右 | |
| #le# | less equal 左小于等于右 | |
| 逻辑式之间 | #not# | 非门 |
| #and# | 与门 | |
| #or# | 或门 |
- 出现的情况:① if判断 ② for/sum中
例1

sets:
fac /1..6/:a;
endsets
data:
a=6,5,4,3,2,1;
enddata
[email protected](fac(i)|i#ge#5:a(i));
例2

sets:
fac /1..6/:a;
endsets
@for(fac(i)|i#ne#3 #and# i#ne#4:a(i)>5);
[email protected](fac(i):a(i));
边栏推荐
- How to maintain the length of a solid array and how to delete elements completely
- OS Experiment 6 [device management]
- One's deceased father grind adjusts, read this you will understand!
- Global industry analysis report of high purity anhydrous alumina in 2022
- Global industry analysis report of spray drying machinery in 2022
- esayexcel快速入门
- 使用Jenkins的pipeline实现CI/CD
- [chapter 65 of the flutter problem series] a solution to setting the maximum height of showmodalbottomsheet in the flutter is invalid
- Relay log performance optimization practice in DM - tidb tool sharing
- Liste et ensemble des types de données redis et triés Définir le tri
猜你喜欢

10 个派上用场的 Flutter 小部件

漏洞复现_CVE-2020-0796 永恒之黑漏洞_遇坑_已解决

平价蓝牙耳机什么牌子好?数码控盘点四大平价好用的蓝牙耳机
![[APIO2022] 火星——构造、状态压缩](/img/ae/877bd8f20082257551c85abdbb1fd6.png)
[APIO2022] 火星——构造、状态压缩

二极管、三极管

数字展厅设计方案的制定要注意这四点

qt制作简易的视频通话

Introduction to temporal database incluxdb

Resistance, capacitance, inductance

How to use module export import: uncaught syntaxerror: cannot use import statement outside a module
随机推荐
PT kill of MySQL
Basic exercise rectangular area intersection
Using pyqt5 + Agora + leancloud to realize online class based on student fatigue detection
[software testing] a collection of frequently asked questions from software testing interviews of several major manufacturers (bat, three major traffic manufacturers, and well-known manufacturers)
[sans titre]
Get started! How to quickly deploy web applications with dragon lab?
关于发布《深圳市培育发展半导体与集成电路产业集群行动计划(2022-2025年)》的通知
工程上对排序的改进
Global industry analysis report of high purity anhydrous alumina in 2022
Redis数据类型之list和set以及sorted_set排序
Global industry analysis report of UAV detection radar in 2022
List, set and sorted of redis data types_ Set sort
php安全开发 07文章模块的修改功能编写
Vulnerability recurrence_ Cve-2020-0796 eternal black vulnerability_ Pit encounter_ resolved
Sum of redis data types hash
【Flutter 问题系列第 65 篇】在 Flutter 设置 showModalBottomSheet 最大高度无效的解决方案
Research Report on underwater plasma cutting machine industry - market status analysis and development prospect forecast
网上开户是安全的吗?
7-1 intersection of two ordered linked list sequences (20 points)
Is it better to use UUID for database primary key or snowflake or something else