[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help

From: Doug Stewart
Subject: Re: Help
Date: Tue, 12 Feb 2019 10:11:35 -0500

On Tue, Feb 12, 2019 at 9:45 AM Ntshuxekani Chauke <address@hidden> wrote:
Good day,
I am trying to learn on how to use octave. I am trying to solve factorials and second order differentiation. Can you please assist on how to put it on the software. Fir example, i want to solve n! With n between 1 and 10.  Where n!=1×2×3.....×(n-1)×n.  For the second order, f"=f(x+h)-2f(x)+f(x-h)/h^2. With h-0

clear all

#for second order diff
f=@(x) sin(x)
h=linspace (1e-2, 2e-5,10)  

y=(f(x+h)-2*f(x)+f(x-h)) ./(h .^2)
#this show how the approximation gets better as h gets smaller.

DASCertificate for 206392

reply via email to

[Prev in Thread] Current Thread [Next in Thread]