js类似matlab_JavaScript与MATLAB的计算性能差异对比研究

本文对比分析了JavaScript和MATLAB的计算性能。研究发现JavaScript在迭代计算中展现出更高的精度和更快的速度,但其运行效率易受计算机配置影响,尤其是浏览器内存。MATLAB的计算结果则相对稳定,不受计算机配置变化影响。
摘要由CSDN通过智能技术生成

龙源期刊网

http://www.qikan.com.cn

JavaScript

MATLAB

的计算性能差异对

比研究

作者:庞聪

杜瑞林

王磊

贺克锋

龙坤

罗棋

来源:《计算机时代》

2016

年第

10

要:

由于

JavaScript

具有跨平台性和免安装、轻量级等优点,已经实现线性代数、无约

束优化、信号处理等数学计算,其在未来的

瘦客户端

领域会有很大的应用空间。分析了

JavaScript

MATLAB

的数值数据类型特点,对比测试了两种语言在不同迭代次数情况下、不

同计算机上执行的计算结果差异,并根据测试得出结论:

JavaScript

MATLAB

的迭代计算结

果更加精确,运行速度也更快;

MATLAB

的计算结果几乎不受计算机配置影响,而

JavaScript

的运行情况容易受计算机配置影响,这是因为浏览器的运行受到了计算机内存等的影响。

关键词:

JavaScript

MATLAB

处理时间;

数据精度;

迭代;

计算机

中图分类号:

TP393

TP311

文献标志码:

A

文章编号:

1006-8228

(

2016

)

10-05-03

Comparative study of computational performance between JavaScript and MATLAB

Pang Cong1

Du Ruilin1

Wang Lei1

He Kefeng1

Long Kun2

Luo Qi1

(

1. Institute of Seismology

CEA

Wuhan

Hubei 430071

China

2. Wuhan

University

School of economics and management

)

Abstract

Because JavaScript has the advantages of cross-platform

installation-free and

lightweight

the mathematical computation such as linear algebra

unconstrained optimization

signal processing etc. has been realized by it

and it will have a lot of application space in the future

of "thin client" field. The characteristics of JavaScript and MATLAB numeric data types are analyzed

in this paper. Comparison test of the two different languages is made by the computational results

performed in different times of iteration

and on different computers. The test results show that

JavaScript iterative calculation results are more accurate than MATLAB

and the running speed is

also faster

The result of MATLAB is almost not affected by the configuration of the computer

but the operation of JavaScript is easy to be affected by the configuration of the computer

because

the browser's operation is affected by the computer memory etc.

Key words

JavaScript

MATLAB

processing time

data precision

iteration

computer

0

引言

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值