CR4 - The Engineer's Place for News and Discussion ®


Previous in Forum: Modscan Capture Text File to HTML Then Uploading it to Website   Next in Forum: The "New" Google Earth
Close
Close
Close
7 comments
Participant

Join Date: Jul 2017
Posts: 2

Code For Cosmological Calculator

07/04/2017 2:22 PM

I have been using the calculator at http://www.einsteins-theory-of-relativity-4engineers.com/cosmocalc.htm manually for a variety of SN1a data points. The process is tedious. I would like to take some of the code dealing with proper recession speed and proper distance and automate it to take in a csv file and put out a file with some output columns added. Has anyone already done this? Is there a way to get the original code or something that is automated already? Thanks.

Register to Reply
Pathfinder Tags: cosmology
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Mar 2007
Location: at the beach in Florida
Posts: 18646
Good Answers: 1086
#1

Re: code for cosmological calculator

07/04/2017 2:40 PM

I'm reasonably sure somebody has done this....but will have to search for it...

http://www.mathportal.org/calculators/statistics-calculator/correlation-and-regression-calculator.php

__________________
Life is like riding a bicycle. To keep your balance you must keep moving. A.E.
Register to Reply
Guru
Safety - Hazmat - New Member United States - US - Statue of Liberty - New Member Engineering Fields - Chemical Engineering - Old Hand

Join Date: Mar 2011
Location: Lubbock, Texas
Posts: 12306
Good Answers: 143
#2

Re: code for cosmological calculator

07/04/2017 3:10 PM

Univ improved constraints on cosmological parameters from SN1a data

Is the above link relevant?

I have not a good clue what it means, but there you go.

__________________
If it ain't broke, don't fix it. Just build a better one.
Register to Reply
Guru

Join Date: Apr 2010
Posts: 5500
Good Answers: 539
#3

Re: code for cosmological calculator

07/04/2017 5:41 PM

You might need to make your own. Here is the reference for the formulas:

https://en.wikipedia.org/wiki/Distance_measures_(cosmology)

I don't know if everything you need is here. If you can verify that you can reproduce the results for one data point set with formulas, you can put the formulas into Excel. If you can get the Excel spreadsheet to reproduce the data for one data set on a single row, then you can load your data in, one data set per row and copy the formulas to all the rows.

You have three options: 1) Make the spreadsheet, 2) Use the calculator for each data set, 3) Search for an automated calculator.

Which one turns out to be the least effort depends on how many data sets you have, and, well, luck.

Register to Reply
Guru
Engineering Fields - Aerospace Engineering - Retired South Africa - Member - The Rainbow-nation Engineering Fields - Engineering Physics - Relativity & Cosmology Popular Science - Cosmology - The Big Picture!

Join Date: May 2006
Location: 34.03S, 23.03E
Posts: 3730
Good Answers: 58
#4

Re: Code For Cosmological Calculator

07/05/2017 1:00 PM

I have made a more general purpose calculator with copy-able columns and graphs, but this may perhaps also not be quite what you need.

I have also written a tutorial on physicsforums, of which part 3 gives the equations for most of the parameters calculated.

The code is unfortunately not in available in a documented form - just the bare code as you can get by viewing the source of the page as text.

Hope it helps.

Jorrie

__________________
"Perplexity is the beginning of knowledge." -- Kahlil Gibran
Register to Reply
Guru
Safety - Hazmat - New Member United States - US - Statue of Liberty - New Member Engineering Fields - Chemical Engineering - Old Hand

Join Date: Mar 2011
Location: Lubbock, Texas
Posts: 12306
Good Answers: 143
#5
In reply to #4

Re: Code For Cosmological Calculator

07/05/2017 1:38 PM

Where I come from, it might require we actually knew what all this stuff means.

I usually just look up at night and say, yep, there they are again!

__________________
If it ain't broke, don't fix it. Just build a better one.
Register to Reply
Participant

Join Date: Jul 2017
Posts: 2
#6
In reply to #4

Re: Code For Cosmological Calculator

07/05/2017 3:29 PM

Jorrie,

If there is a way to get whatever text code you have, that will be a better start than from scratch.

Am I allowed to give you my email address here for you to send it to, or do you have a web site where it exists?

Thanks, Bruce

Register to Reply
Guru

Join Date: Mar 2007
Location: at the beach in Florida
Posts: 18646
Good Answers: 1086
#7
In reply to #6

Re: Code For Cosmological Calculator

07/05/2017 3:33 PM

Through this site....click on "send jorrie message"

http://cr4.globalspec.com/member/1266/Jorrie

__________________
Life is like riding a bicycle. To keep your balance you must keep moving. A.E.
Register to Reply
Register to Reply 7 comments
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Copy to Clipboard

Users who posted comments:

Bruce Wallman (1); James Stewart (2); Jorrie (1); Rixter (1); SolarEagle (2)

Previous in Forum: Modscan Capture Text File to HTML Then Uploading it to Website   Next in Forum: The "New" Google Earth

Advertisement