{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

图灵程序设计丛书·代码本色:用编程模拟自然系统

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

图灵程序设计丛书·代码本色:用编程模拟自然系统

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Editer Recommend

怎么通过软件捕捉自然界难以捉摸的演进和突变?
理解物理世界背后的数学原理对我们创造数字世界有多大帮助?
本书介绍了用计算机模拟自然系统涉及的编程策略与技术,涵盖了基本的数学和物理概念,以及可视化地展示模拟结果所需的高级算法。读者将从构建基本的物理引擎开始,一步一步地学习如何创建智能移动的物体和复杂的系统,为进一步探索生成设计奠定基础。相关的知识点包括力、三角、分形、细胞自动机、自组织和遗传算法。本书的示例使用基于Java的开源语言及开发环境Processing编写。
作为纽约大学Tisch艺术学院Nature of Code课程主讲老师,Daniel集合了多年开发和教学经验,希望借由此书让大家真正了解如何用代码模拟自然现象。
Content Description

《代码本色:用编程模拟自然系统》由纽约大学Nature of Code课程老师Daniel Shiffman写就,是一本借助开源语言Processing全面介绍如何用代码模拟自然世界的学习指南。作者从模拟生命物体、活物、智能系统三个层面,从手工编写Processing代码到使用现有的物理函数库模拟高级而复杂的行为,利用有趣的事例渐进式介绍了算法和模拟方面的高级编程策略和技术。主要内容涉及向量、力、粒子系统、三角函数、自治智能体、细胞自动机、分形、遗传算法和人工神经网络。
《代码本色:用编程模拟自然系统》适合游戏设计师、好学的程序员、物理学爱好者及所有对计算机模拟和互动编程感兴趣的人学习参考。
Author Description

Daniel Shiffman,纽约大学Tisch艺术学院助理艺术教授,Nature of Code便是其主讲课程之一。多年来,他一直用Processing这门艺术家友好型开源语言开发教程、教学示例和代码库,拥有丰富的算法和应用教学经验。另外,其著作Learning Processing: A Beginner's Guide to Programming Images, Animation, and Interaction亦广受读者好评。
Comments

★“自然现象的模拟技术可以应用于程序式建模(如地形、植物)、程序式动画(如粒子特效、云层变化)、游戏逻辑(如刚体物理)、人工智能(如非玩家角色的移动)……这本书作为这个领域的入门书籍,使用了简易的Processing编程语言作为例子,非专业程序员也会很容易理解。”
——叶劲峰,知名游戏程序员,《游戏引擎架构》译者

★“很多编程书读起来味同嚼蜡,大多数的编程课程同样枯燥无趣。这本书却是趣味横生。每一章都快速全面地介绍一个有趣主题,而这些主题介绍得还相当深入。遗传算法、神经网络,等等,哇!这些主题通常一个就需要至少一本书的篇幅来讲解。本书给出了我目前所知最深入浅出的数学解释。”
——一位从事编程20余年的程序员

★“2012年春天,我在NYU ITP读研究生时上过Daniel Shiffman的Nature of Code课,渐进式学习了他讲授的全部内容,现在重读这本书更是让我惊叹。我会向任何对运动、物理、可编程艺术、游戏等感兴趣的人强烈推荐这本书。……总之,这本书绝对值得一读,所有艺术家/设计师/码农的书架上都应该有一本!”
——纽约大学Nature of Code课程学生

★“很久很久以前,我在Director中用Lingo做Shockwave游戏编程。那时,我经常在深夜花费大量时间,上网搜寻关于‘转动惯量’之类的文章,最后写出的代码经常是超级繁琐而且缺陷很多。……而在阅读这本书五分钟之后,我得到的‘啊哈,原来应该这么实现’的顿悟,比当初五年的钻研所得到的还要多!”
——资深Shockwave 游戏设计师
Catalogue

第0章 引言
0.1 随机游走
0.2 随机游走类
0.3 概率和非均匀分布
0.4 随机数的正态分布
0.5 自定义分布的随机数
0.6 Perlin噪声(一种更平滑的算法)
0.6.1 映射噪声
0.6.2 二维噪声
0.7 前进

第1章 向量
1.1 向量
1.2 Processing中的向量
1.3 向量的加法
1.4 更多的向量运算
1.4.1 向量的减法
1.4.2 向量加减法的运算律
1.4.3 向量的乘法
1.4.4 更多的向量运算律
1.5 向量的长度
1.6 单位化向量
1.7 向量的运动:速度
1.8 向量的运动:加速度
1.9 静态函数和非静态函数
1.10 加速度的交互

第2章 力
2.1 力和牛顿运动定律
2.1.1 牛顿第一运动定律
2.1.2 牛顿第三运动定律
2.1.3 牛顿第三运动定律(从Processing的角度表述)
2.2 力和Processing的结合:将牛顿第二运动定律作为一个函数
2.3 力的累加
2.4 处理质量
2.5 制造外力
2.6 地球引力和力的建模
2.7 摩擦力
2.8 空气和流体阻力
2.9 引力
2.10 万有引(斥)力

第3章 振荡
3.1 角度
3.2 角运动
3.3 三角函数
3.4 指向运动的方向
3.5 极坐标系和笛卡儿坐标系
3.6 振荡振幅和周期
3.7 带有角速度的振荡
3.8 波
3.9 三角函数和力:钟摆
3.10 弹力

第4章 粒子系统
4.1 为什么需要粒子系统
4.2 单个粒子
4.3 使用ArrayList
4.4 粒子系统类
4.5 由系统组成的系统
4.6 继承和多态的简介
4.7 继承基础
4.8 用继承实现粒子类
4.9 多态基础
4.10 用多态实现粒子系统
4.11 受力作用的粒子系统
4.12 带排斥对象的粒子系统
4.13 图像纹理和加法混合

第5章 物理函数库
5.1 Box2D及其适用性
5.2 获取Processing中的Box2D
5.3 Box2D基础
5.3.1 SETUP
5.3.2 DRAW
5.3.3 Box2D世界的核心元素
5.4 生活在Box2D的世界
5.5 创建一个Box2D物体
5.5.1 第1步:定义一个物体
5.5.2 第2步:设置物体的定义
5.5.3 第3步:创建物体
5.5.4 第4步:为物体的初始状态设置其他属性
5.6 三要素:物体、形状和夹具
5.6.1 第1步:定义形状
5.6.2 第2步:创建夹具
5.6.3 第3步:用夹具将形状连接到物体上
5.7 Box2D和Processing的结合
5.7.1 第1步:在主程序(即setup()和draw()函数)中添加Box2D
5.7.2 第2步:建立Processing盒子对象和Box2D物体对象之间的联系
5.8 固定的Box2D对象
5.9 弯曲的边界
5.9.1 第1步:定义一个物体
5.9.2 第2步:定义形状
5.9.3 第3步:配置形状
5.9.4 第4步:使用夹具将形状连接到物体上
5.10 复杂的形状
5.11 Box2D关节
5.11.1 步骤1:确保有两个物体
5.11.2 步骤2:定义关节
5.11.3 步骤3:配置关节的属性
5.11.4 步骤4:创建关节
5.12 回到力的话题
5.13 碰撞事件
5.13.1 步骤1:Contact对象,你能否告诉我哪两个物体发生了碰撞
5.13.2 步骤2:夹具对象,你能否告诉我你连接在哪个物体上
5.13.3 步骤3:物体,你能否告诉我你连接在哪个粒子对象上
5.14 小插曲:积分法
5.15 toxiclibs的Verlet Physics物理库
5.15.1 获取toxiclibs
5.15.2 VerletPhysics的核心元素
5.15.3 toxiclibs中的向量
5.15.4 构建toxiclibs的物理世界
5.16 toxiclibs中的粒子和弹簧
5.17 整合代码:一个简单的交互式弹簧
5.18 相连的系统I:绳子
5.19 相连的系统II:力导向图
5.20 吸引和排斥行为

第6章 自治智能体
6.1 内部的力
6.2 车辆和转向
6.3 转向力
6.4 到达行为
6.5 你的意图:所需速度
6.6 流场
6.7 点乘
6.8 路径跟随
6.9 多段路径跟随
6.10 复杂系统
6.11 群体行为(不要碰到对方)
6.12 结合
6.13 群集
6.14 算法效率(为什么程序跑得这么慢)
6.15 最后的几个注意事项:优化技巧
6.15.1 长度的平方(或距离的平方)
6.15.2 正弦余弦查询表
6.15.3 创建不必要的PVector对象

第7章 细胞自动机
7.1 什么是细胞自动机
7.2 初等细胞自动机
7.3 如何编写初等细胞自动机
7.4 绘制初等CA
7.5 Wolfram分类
7.6 生命游戏
7.7 编写生命游戏
7.8 面向对象的细胞实现
7.9 传统CA的变化

第8章 分形
8.1 什么是分形
8.2 递归
8.3 用递归函数实现康托尔集
8.4 科赫曲线和ArrayList技术
8.5 树
8.6 L系统

第9章 代码的进化
9.1 遗传算法:启发自真实现象
9.2 为什么使用遗传算法
9.3 达尔文的自然选择
9.4 遗传算法,第一部分:创建种群
9.5 遗传算法,第二部分:选择
9.6 遗传算法,第三部分:繁殖
9.7 创建种群的代码
9.7.1 第1步:初始化种群
9.7.2 第2步:选择
9.7.3 第3步:繁殖
9.8 遗传算法:整合代码
9.9 遗传算法:创建自己的遗传算法
9.9.1 第1点:更改变量
9.9.2 第2点:适应度函数
9.9.3 第3点:基因型和表现型
9.10 力的进化:智能火箭
9.11 智能火箭:整合代码
9.12 交互式选择
9.13 生态系统模拟
9.13.1 基因型和表现型
9.13.2 选择和繁殖


第10章 神经网络
10.1 人工神经网络:导论和应用
10.2 感知器
10.3 用感知器进行简单的模式识别
10.4 实现感知器
10.5 转向感知器
10.6 还记得这是个"网络"吗
10.7 神经网络图
10.8 实现前馈动画
10.9 结语
参考文献
索引
Introduction

这是一本什么书
我在ITP教授一门名为“计算媒体导论”的课。在这门课中,学生主要学习一些编程基础知识(变量、条件语句、循环、对象和数组等)。除此之外,他们还学习如何使用基本元素(图像、像素、计算机视觉、组网、数据和3D等)开发交互式应用。课程内容以我之前写的入门书Learning Processing为主,而本书是Learning Processing的续篇。一旦你掌握了编程基础并且接触了形形色色的应用场景,接下来很可能就是深入研究某个特定的方向。举个例子,你可以专注于计算机视觉(比如阅读Greg Borenstein写的Making Things See等书)。当然,本书的内容只是众多发展方向之一,它只是延续了Learning Processing,展示了Processing语言在算法和模拟方面的更高级编程技术。
本书的目标非常简单:我们想看看真实世界中发生的各种自然现象,以及如何通过编程对它们进行模拟。
那这到底是一本什么样的书?这是不是一本有关科学的书?我可以很肯定地回答:不是。事实上,我们确实会涉及物理学和生物学的个别话题,但不会从严谨的学术层面进行研究,因为这不在本书讲述范围之内。相反,我们会简单探讨某些科学原理,只攫取我们需要的那一部分内容,并根据它们构建相关的示例程序。
那这是不是一本有关艺术或设计的书呢?我还是会回答:不是。尽管我们的工作结果都是视觉上可见的事物(用Processing开发的演示动画),但也仅仅是用简单的图形和色彩做出的演示,我们真正专注的是它们背后的算法和相关编程技术。然而,我还是希望艺术工作者和设计师们能将本书中的知识融入工作实践,创造一些真正新颖有趣的作品。
如果非要给这本书归类,我觉得它只是一本普普通通的编程书。尽管书中的一些章节取材自科学原理(比如牛顿物理学、细胞生长、进化等),而且一些编程结果会激发艺术创作的灵感,但归根结底本书重心是代码的实现,尤其是其中的面向对象编程技术。
关于Processing语言
本书使用Processing语言,原因有很多。第一,它是我用着最舒服的编程语言和开发环境,我很喜欢用它来工作;第二,它是免费开源的,并且非常适合初学者,它的开发者社区很活跃。对很多人来说,Processing或许是他们学习的第一门编程语言。因此,我希望这本书能拥有广泛的受众,并希望通过Processing用一种友好的方式阐述其中的原理。
本书中所写的例子并不严格限定于Processing语言,我们还可以用ActionScript、JavaScript、Java(脱离Processing开发环境),或是其他开源的“创意编程”开发环境,比如openFrameworks、Cinder,以及最近发布的pocode。我希望自己完成这本书之后,能将本书中的例子移植到其他开发环境中,并发布其他语言的示例程序。如果你对移植本书的示例程序感兴趣,请随时联系我(daniel@ shiffman.net)。
本书中的所有示例都已在Processing 2.0b6版本上测试通过,大部分例子也兼容早期版本。我会时常更新这些示例,使它们兼容最新版本。
……

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book