#include<\/a> <cmath><\/p>\nusing namespace std;<\/p>\n
<\/p>\n
float estimating_e (float n)<\/p>\n
{<\/p>\n
float x=0.0, e=0.0;<\/p>\n
float factorial= 1;<\/p>\n
for(float j=1; j<=n; j++)<\/p>\n
{<\/p>\n
factorial = factorial * j;<\/p>\n
x = x + 1\/factorial;<\/p>\n
}<\/p>\n
e = x + 1;<\/p>\n
return e;<\/p>\n
}<\/p>\n
<\/p>\n
int main ()<\/p>\n
{<\/p>\n
float num;<\/p>\n
cout<<“ingresa un número, entre mas grande mas preciso sera e”<<endl;<\/p>\n
cin>>num;<\/p>\n
cout<<“el aproximado de e es:”<< estimating_e(num)<<endl;<\/p>\n
return 0;<\/p>\n
}<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#include <iostream>#include <cmath>using namespace std; float estimating_e (float n){float x=0.0, e=0.0;float factorial= 1;for(float j=1; j<=n; j++){factorial = factorial * j;x = x + 1\/factorial;}e = x + 1;return e;} i… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":88,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12176"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/88"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=12176"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12176\/revisions"}],"predecessor-version":[{"id":13168,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12176\/revisions\/13168"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=12176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=12176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=12176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}