Aptech Systems, Inc. Worldwide Headquarters
Aptech Systems, Inc.
2350 East Germann Road, Suite #21
Chandler, AZ 85286
Ready to Get Started?
Request Quote & Product Information
Training & Events
Step-by-step, informative lessons for those who want to dive into GAUSS and achieve their goals, fast.
Have a Specific Question?
Q&A: Register and Login
Premier Support and Platinum Premier Support are annually renewable membership programs that provide you with important benefits including technical support, product maintenance, and substantial cost-saving features for your GAUSS System or the GAUSS Engine.
Join our community to see why our users are considered some of the most active and helpful in the industry!
Where to Buy
Recent Tagsapplications character vectors CML CMLMT Constrained Optimization datasets dates dlibrary dllcall error error handling errors Excel file i/o floating network GAUSS Engine graphics GUI hotkeys installation Java API license licensing linux loading data loops matrices matrix matrix manipulation Maxlik MaxLikMT Memory optimization Optmum output PQG graphics procs RAM random numbers string functions strings structures threading Time Series writing data
Time Series 2.0 MT
Find out more now
Time Series MT 2.1
Errors G0157 & G0008
I'm new to Gauss and was recently learning my way through it with a couple a programs my co-author sent me. When I tried to run them this is what I got:
C:\gauss13\src\mathfn.src(383) : error G0157 : 'beta' : Illegal redefinition of matrix
C:\gauss13\src\mathfn.src(383) : error G0008 : 'proc beta(x,y)' : Syntax error
Any idea where to start? I'll get back to my co-author but perhaps she won't know the answer--she's using Gauss 9 and I have 13.
I think what you are saying is that you changed the name of the beta variable in the program sent by your coauthor and left the beta procedure inside of mathfns.src alone. If this is what you are saying, then you do not need to make any changes or comments to mathfns.src. I think this is a good solution. I only suggested commenting out the procedure since that might make coordination with your co-author simpler if there is a large code base.
GAUSS 13 has a beta function. GAUSS 9 did not. It looks like your code uses a variable called beta. If you do not anticipate the need for the beta procedure (at least in the short run), I would recommend commenting out the beta procedure. You will find it on line 383 of the file C:\gauss13\src\mathfn.src. Surround it with comments like this:
/**** Commented out to avoid conflicting with variable 'beta' proc beta(x,y); ....code for beta function endp; ************************/
Now the program should run.
One quick tip that may be helpful: You can quickly open mathfn.src to make the changes by entering:
from the GAUSS command line.
I just changed the variable's name and it worked. Any difference with what you suggested? And if so, where should I write the comment exactly, on line 383? Thanx