Skip to Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
606
|
第十五章
以下範例使用三個滑桿分別代表電壓、電流與電阻,且變數間將遵守歐姆定律(電壓 =
電流 * 電阻)。電壓滑桿的值會是電流與電阻的乘積,然而當電壓值被改變時,電流值
需重新計算。而當電阻值很小時,增加電壓值可能會導致電流值過大而超出滑桿上限,
解決方法是將滑桿的極限值動態化,這需要使用
Dynamic
將整個滑桿包裝起來,但我們
並不希望整個互動元件在滑桿變動值持續重新生成,此時便輪到終止函數上場了,只有
在滑桿變動結束時,其他滑桿的極限值才會被重新指派,並生成新的滑桿。[Page-608]
互動式操控電流值,並計算電壓值
終止函數將更新電壓與電阻值之上限
互動式操控電阻值,並計算電壓值
終止函數將更新電流與電壓值之上限
ch15.indd 606 2014/4/2 下午 03:39:58
15.6 控制動態變數的更新時機
|
607
互動式操控電壓值,並計算電流值
終止函數將更新電流與電阻之上限
延伸資訊
歐姆定律範例中,使用
DynamicModule
的原因請參見訣竅 15.7。[Page-609]
15.6 控制動態變數的更新時機
問題點
你想控制動態變數的更新時機與變數相關性。
解決方案
使用
Refresh
指令控制動態更新的時機。以下動態表示式將每秒鐘更新亂數。
ch15.indd 607 2014/4/2 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mathematica Cookbook

Mathematica Cookbook

Sal Mangano
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9789863470106