Google Answers Logo
View Question
 
Q: Math Emulator ( Answered 3 out of 5 stars,   1 Comment )
Question  
Subject: Math Emulator
Category: Computers
Asked by: spud480-ga
List Price: $20.00
Posted: 10 Aug 2002 00:07 PDT
Expires: 09 Sep 2002 00:07 PDT
Question ID: 52889
I'm looking for software[someone suggested that what I'm looking for
is called a math emulator]that will include a calculator that can be
adjusted to carry out the answer,as in decimals to hundreds or
thousands of digits[example;sq.root of x=23.5385115etc.etc.]and it
must be able to separate these strings of numbers into 2digit or3digit
or 4 or 5 etc.[235-385-115 etc.] and then scan to find similar
numbers[235-532-352 etc.]. Someone else suggested code breaker
programs,whatever they are.

Request for Question Clarification by alienintelligence-ga on 10 Aug 2002 00:13 PDT
hi spud480 

What operating system would this need to run
on?

-AI

Request for Question Clarification by blader-ga on 10 Aug 2002 00:28 PDT
Have you tried Mathematica?

Request for Question Clarification by blader-ga on 10 Aug 2002 00:32 PDT
Spud: 

I was able to find an arbitrary precision calculator rather easily,
but about seperation and scanning portion: wouldn't a cut and paste of
the result in to Notepad and doing a search for the digits work just
as well? I could probably find a program that does this automatically,
but did you want the functionality integrated into the calculator?
Answer  
Subject: Re: Math Emulator
Answered By: maniac-ga on 10 Aug 2002 08:27 PDT
Rated:3 out of 5 stars
 
Hello spud480,

You didn't specify what kind of system you are using, so I'll provide
suggestions for both Windows and Unix (Linux) systems.

If you have a Unix system, try
  man dc
to see if you have the "arbitrary precision calculator". It can read
commands from files or standard input. Results are normally sent to
standard output. You can specify integer arithmetic or arbitrary
precision. Values and macros can be stored and retrieved from
registers. It also allows for conditional execution of macros stored
in registers.

Taking standard output and separating into small pieces can be done
with other shell utilities such as sed, awk and others. Let's say you
take one of the long numbers into a series of three digit lines...
  324
  568
  429
By numbering the lines to read like...
  001  324
  002  568
  003  429
you can then do searches (using grep), sorts (using sort), counting
unique items (using uniq) and similar manipulations with shell
utilities. I can suggest some techniques for doing this if you are not
familiar with them.

On Windows (or Unix), there is a multiple precision arithmethic
package named MAPM, available at...

http://www.tc.umn.edu/~ringx004/mapm-main.html

There are a number of applications built upon MAPM including a desk
calculator similar to dc, plus since you get source code you can build
an application to do whatever you need. As another has suggested, you
can use other windows programs to do searches as well.

There are also some languages that implement what are called a
"bignum" (arbitrary precision arithmetic). One of the more recent ones
is Ruby, described at:

http://www.rubycentral.com/
http://www.rubycentral.com/book/ref_c_bignum.html

Which has a pretty comprehensive description of the language and from
where you can get Ruby versions for Windows or Unix systems.

These are a few sources of this kind of software. Additional searches
using phrases such as "arbitrary precision arithmetic", "bignum",
"repeated sequences of numbers" and so on can provide additional
sources.

  --Maniac

Request for Answer Clarification by spud480-ga on 11 Aug 2002 08:25 PDT
I'm sorry. I should have been more specific in my question. I have
owned a computer for a short time and I am still computer illiterate.
I need a simple as possible answer to my problem. You mention source
codes[what are they and how do you use them to get what I'm looking
for]? Languages?

Clarification of Answer by maniac-ga on 11 Aug 2002 20:44 PDT
Hello spud480,

From your request for clarification, you might not get an acceptable
answer without a lot of effort on your part. I assumed you had some
experience in using computer systems and preferrably some experience
in writing computer programs (and using computer languages).

From your problem description, there are no "easy answers" without
spending a lot of money; a license for an application such as
Matlab...
  http://www.mathworks.com/
costs about $2000. If you don't want to spend that kind of money, I
will try again with more focus on the Windows solution (if you have a
Unix or Linux system - let me know and I can answer more on that as
well) and walk through the process. Using MAPM as an example from...

http://www.tc.umn.edu/~ringx004/mapm-main.html 

Select that site with your web browser. Near the end of the page is a
link titled "Download the DOS / Win NT/9x distribution : mapm-44.zip"

Or select http://www.tc.umn.edu/~ringx004/mapm-44.zip to download a
copy of MAPM. When the contents of the zip file is extracted, you get
a directory with the source code of the MAPM library and applications.
The file README.DOS describes how to build the library and application
on a windows machine (instructions vary by which C compiler you have
available). Another file named README is also in that directory which
provides some guidance in using the programs and cautions on accuracy.

Once the preceeding was completed, you can use the desk calculator
program to generate the values you are looking for. I would suggest
using a "DOS window" to run the desk calculator, do the calculations
you want and capture the output directly to a file or cut / paste into
the notepad or MS Word. That gives you the raw data that you can cut
into pieces, do searches (e.g., Find command), import into a
spreadsheet for counting, sorting, or plotting.

This is not going to be a fancy solution to your problem - you might
have to write some of your own software to do this task because you
are asking for something quite unusual. There are not any prebuilt
application that do this kind of work unless you are willing to spend
a LOT of money. I mentioned the price of Matlab above - that is pretty
typical for a comprehensive mathematics analysis package.
  --Maniac
spud480-ga rated this answer:3 out of 5 stars

Comments  
Subject: Re: Math Emulator
From: clubbedpuppy-ga on 12 Aug 2002 02:14 PDT
 
What you want can be solved using packaged applications as maniac-ga
suggested. But once again, you would most likely need to be able to
handle at least some basic coding [programming]. If you have a few
spare dollars, and you desire this application enough, then I suggest
you visit such places like <a>http://www.rentacoder.com/</a> and pay
someone to make a custom application for you. As was mentioned before,
you haven't detailed your current operating system, though, coders
through this site should be able to handle programming on either
platform.

Take care,
Good luck.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy