# How to tell Mathematica to do all calculations in a notebook numerically?

I would like to tell mathematica to do all calculations numerically.

I have already replaced my input by adding a dot in the end, for example :

nAvg=10.


But the thing is that sometimes I will have summation on discrete integers. It is not necesseraly to put all my code but just to give an idea, terms lile :

Sum[Cos[Omegan[n]*t/2]^2*Abs[cn[n]]^2, {n, nMinSum[nAvg],
nMaxSum[nAvg]}]


Here the n in the sum is a discrete indice. How to tell to mathematica to use it in a numeric rather than symbolic way ?

And if this number is actually multiplied by some numerical number (it is actually the case in this specific example), does mathematica knows that he has to convert everything in numeric ?

• In this case, isn't NSum what you want? You not only have to worry about constants as you mention, but functions that are closed form versus numeric. – Moo Jun 21 at 17:27
• @Moo Ok I will try to use numerical oriented functions. Actually I tried to used NSum but it returned me an error I didn't understand where Sum worked instead. But I guess I would need to open another question for this. – StarBucK Jun 21 at 17:29
• Technically you can set \$Pre = N – Fortsaint Jun 21 at 20:15
{"ft_lang_label":"__label__en","ft_lang_prob":0.9034666,"math_prob":0.6454739,"size":741,"snap":"2019-43-2019-47","text_gpt3_token_len":195,"char_repetition_ratio":0.0990502,"word_repetition_ratio":0.0,"special_character_ratio":0.25101215,"punctuation_ratio":0.097402595,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9974864,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-14T21:48:16Z\",\"WARC-Record-ID\":\"<urn:uuid:8e4d211b-5f1f-4b61-b5d9-041e6ebd1ca9>\",\"Content-Length\":\"133695\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:86d339b8-99e1-4f16-8500-aee0efc1a8b9>\",\"WARC-Concurrent-To\":\"<urn:uuid:33dd8c94-848a-4367-84a6-562d7ecd5933>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://mathematica.stackexchange.com/questions/200801/how-to-tell-mathematica-to-do-all-calculations-in-a-notebook-numerically\",\"WARC-Payload-Digest\":\"sha1:IYCG6XMB6LCK665QLAJZOCPC74BW5GU2\",\"WARC-Block-Digest\":\"sha1:MPAVY6UQYTARR5JFCEUASVYLLDECP7YG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496668539.45_warc_CC-MAIN-20191114205415-20191114233415-00187.warc.gz\"}"}