Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
where is the mistake

Subject: where is the mistake

From: Nena Kabranski

Date: 27 Feb, 2011 04:57:04

Message: 1 of 1

function y=intxexp(n)
% y=intxexp(n)
% n is positive integer
% y calculates p(n) the integrals of (x^n)*exp(x) for x is [0,1].
for i=2:n

0.1043 correct!

0.8417 wrong!

-13.2742 wrong!
Thank you!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us