help-octave
[Top][All Lists]
Advanced

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

Program problem


From: 이태훈
Subject: Program problem
Date: Wed, 29 Apr 2020 20:35:32 +0200

Hi all 
Every time I run this code the Octave program disappear. 
I am using the Octave-4.4.1. app. 
How can I solve the problem??

function IbX_return_value = IbX(a,b,X,r,I0)
I0=1;
a=3;
b=3;
X=9.8;
r=0.098;

IbthetaX = @(theta) I0.*exp( -a.*X.*( 
b.*cos(theta).+sqrt(r.^2.-b.^2.*sin(theta).^2) ) );
q = integral("IbX", 0, pi);
IbX_return_value = (1./pi).*q;

end


reply via email to

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