y(x) =ln (1/(1-x))
Afficher commentaires plus anciens
Réponses (1)
Deia Craig
le 26 Sep 2019
0 votes
clc
clear
x = input('To calculate y(x) enter a value for x: ');
if x < 1
y = log(1/(1-x));
fprintf('\nThe value of y(x) for x = %.2f is: %.2f\n\n',x,y)
else
fprintf('\nThe value of x must be less than 1!\n\n')
end
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
