手机版
热门标签
站点地图
我要投稿
广告合作
联系我们
搜 索
广告位招租
广告位招租
切换导航
首页
编程教程
编程导航
编程百科
编程博文
编程实例
常见问题
产品运营
软件教程
办公软件
栏目导航
▸ php实例代码
▸ Javascript实例代码
▸ python实例代码
▸ Shell实例代码
▸ Sql实例代码
▸ 正则表达式实例代码
▸ Python函数
▸ Java实例代码
▸ C#实例代码
▸ C语言实例代码
▸ C++实例代码
▸ Erlang实例代码
▸ Dart实例代码
▸ D3.js实例代码
▸ D语言实例代码
▸ CSS实例代码
▸ Cobol实例代码
▸ Clojure实例代码
▸ Bootstrap实例代码
▸ Vue实例代码
▸ Angular实例代码
▸ 汇编语言实例
公众号推荐
微信公众号搜
"智元新知"
关注
微信扫一扫可直接关注哦!
编程之家
Erlang实例代码
Erlang exp函数
-module(helloworld). -import(math,[exp/1]). -export([start/0]). start() -> Aexp = exp(3.14), io:fwrite("~p~n",[Aexp]).
Erlang atan函数
-module(helloworld). -import(math,[atan/1]). -export([start/0]). start() -> Atan = atan(0.7071), io:fwrite("~p~n",[Atan]).
Erlang acos函数
-module(helloworld). -import(math,[acos/1]). -export([start/0]). start() -> Acos = acos(0.7071), io:fwrite("~p~n",[Acos]).
Erlang asin函数
-module(helloworld). -import(math,[asin/1]). -export([start/0]). start() -> Asin = asin(0.7071), io:fwrite("~p~n",[Asin]).
Erlang tan函数
-module(helloworld). -import(math,[tan/1]). -export([start/0]). start() -> Tan = tan(45), io:fwrite("~p~n",[Tan]).
Erlang cos函数
-module(helloworld). -import(math,[cos/1]). -export([start/0]). start() -> Cosin = cos(45), io:fwrite("~p~n",[Cosin]).
Erlang Sin函数
-module(helloworld). -import(math,[sin/1]). -export([start/0]). start() -> Sin = sin(45), io:fwrite("~p~n",[Sin]).
Erlang浮点数和指数
-module(helloworld). -export([start/0]). start() -> io:fwrite("~f~n",[1.1+1.2]), io:fwrite("~e~n",[1.1+1.2]).
Erlang浮点数
% Erlang浮点数 -module(helloworld). -export([start/0]). start() -> io:fwrite("~w",[1.1+1.2]).
Erlang列表last
-module(helloworld). -import(lists,[last/1]). -export([start/0]). start() -> Lst1=[1,2,3,4], io:fwrite("~w~n",[last(Lst1)]).
Erlang列表duplicate
-module(helloworld). -import(lists,[duplicate/2]). -export([start/0]). start() -> Lst1 = duplicate(5,1),
Erlang列表droplast
-module(helloworld). -import(lists,[droplast/1]). -export([start/0]). start() -> Lst1 = [1,2,3], Lst2 = droplast(Lst1),
Erlang列表删除delete
-module(helloworld). -import(lists,[delete/2]). -export([start/0]). start() -> Lst1 = [1,2,3], Lst2 = delete(2,Lst1),
Erlang列表附加append
-module(helloworld). -import(lists,[append/2]). -export([start/0]). start() -> Lst1 = [1,2,3], Lst2 = append(Lst1,[4,5]),
Erlang列表any
-module(helloworld). -import(lists,[any/2]). -export([start/0]). start() -> Lst1 = [1,2,3], Predicate = fun(E) -> E rem 2 == 0 end,
Erlang列表all
-module(helloworld). -import(lists,[all/2]). -export([start/0]). start() -> Lst1 = [1,2,3], Predicate = fun(E) -> E rem 2 == 0 end,
上一页
1
2
3
4
5
6
7
8
下一页
小编推荐
• 一次彻底讲清如何处理mysql 的死锁问题
• MySQL 通过 Next-Key Locking 技术(行
• 一文彻底弄懂mysql的事务日志,undo lo
• Linux系统控制文件 /etc/sysctl.conf详
• linux命令useradd添加用户详解
• vi 和vim 的区别
• Linux系统下如何监测磁盘的使用空间
• linux中查看和开放端口
• Linux设置开放一个端口
• linux之ftp命令详解
• linux系统下实时监控进程以及定位杀死挂
• Linux下安装jdk8的方法
• 阿里云被挖矿进程wnTKYg入侵的解决方法
• 莫小安 CentOS7使用firewalld打开关闭防
• Linux中more和less命令用法
• linux系统里/opt目录和/usr/local目录的
• 如何使用Siege进行压测?
• 本地访问服务器的nacos地址
热门标签
Nvdia
显卡驱动
录屏功能
录制游戏