Go Back   Physics Help Forum > College/University Physics Help > General Physics

General Physics General Physics Help Forum

Like Tree1Likes
  • 1 Post By Woody
Reply
 
LinkBack Thread Tools Display Modes
Old Nov 17th 2018, 01:24 PM   #1
Member
 
Join Date: Oct 2010
Posts: 30
Matlab code - physics questions

Why did the author of this code: https://www.mathworks.com/matlabcent...lectric-fields
use central difference method instead of using derivative in Matlab?

I have a few physics questions also, but this will be for now.
Thanks.
Nforce is offline   Reply With Quote
Old Nov 19th 2018, 02:52 AM   #2
Senior Member
 
Woody's Avatar
 
Join Date: Jun 2016
Location: England
Posts: 664
The central difference is a numerical method for estimating the derivative.
It is usually used when the actual derivative is unknown, or difficult to evaluate.
Alternatively it may be that the data is perfectly organised for, and the derivative perfectly compatible with, the central difference method, making it the obvious method of choice.
Nforce likes this.
__________________
~\o/~
Woody is offline   Reply With Quote
Old Nov 19th 2018, 10:13 AM   #3
Member
 
Join Date: Oct 2010
Posts: 30
Ok, thanks.

Do you maybe know, if we choose B field as a function of some, can we get the equation for calculating Lorentz force as a PDE or something we can't solve?
Nforce is offline   Reply With Quote
Reply

  Physics Help Forum > College/University Physics Help > General Physics

Tags
code, matlab, physics, questions



Thread Tools
Display Modes


Similar Physics Forum Discussions
Thread Thread Starter Forum Replies Last Post
Penelope monte carlo code KillSwitch900 Physics Software 17 Aug 28th 2018 06:21 AM
seems that mathtype doesn't parse a simple amsmath code sepinaz LateX Help 1 Aug 10th 2015 03:09 PM
matlab for non-autonomous equations grandunification Physics Software 0 Jun 16th 2010 05:36 PM
Create a Hologram with Matlab!?!?! jordanleeburgess Light and Optics 0 Feb 2nd 2010 07:24 PM
Plot spectra with Matlab astrofysikern Light and Optics 0 Mar 26th 2009 04:06 AM


Facebook Twitter Google+ RSS Feed