Commit graph

54 commits

Author SHA1 Message Date
Benoît Minisini
a9fbd40cd8 [INTERPRETER]
* NEW: Implement the ^ operator in the '_operators' interface.

[GB.COMPLEX]
* NEW: Implement the ^ operator.

[GB.GSL]
* NEW: Implement the ^ operator in the Complex class.


git-svn-id: svn://localhost/gambas/trunk@4931 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-10 02:37:39 +00:00
Benoît Minisini
a3966cf195 [DEVELOPMENT ENVIRONMENT]
* BUG: Array of classes exported by a component are now correctly handled
  by the component interface analyzer.

[INTERPRETER]
* BUG: The _operators interface now correctly takes into account the
  "Float - Object" case.

[GB.GSL]
* NEW: Redesign of the Polynomial class. Now it implements a polynomial 
  that can switch between real and complex coefficients transparently.
* NEW: The ComplexPolynomial class has been removed.


git-svn-id: svn://localhost/gambas/trunk@4929 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-10 00:13:00 +00:00
Benoît Minisini
a036882dcc [GB.GSL]
* NEW: Handle GSL errors.
* NEW: Reimplement the Polynomial class by inheriting Float[].


git-svn-id: svn://localhost/gambas/trunk@4926 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 19:42:49 +00:00
Benoît Minisini
fa552f69c1 [DEVELOPMENT ENVIRONMENT]
* NEW: New gb.complex component

[INTERPRETER]
* BUG: Automatic array conversion now works with not yet loaded array 
  classes.

[GB.COMPLEX]
* NEW: New component that implements a rudimentary management of complex 
  numbers. This component is automatically loaded if a complex number
  constant is encountered and no loaded component can already handle 
  complex numbers.


git-svn-id: svn://localhost/gambas/trunk@4924 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 15:37:42 +00:00
Benoît Minisini
ad823d98cf [GB.GSL]
* NEW: Add Complex.Neg() to return the negative of a complex number.
* NEW: Add Complex.Inv() to return the inverse of a complex number.


git-svn-id: svn://localhost/gambas/trunk@4923 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 14:30:44 +00:00
Benoît Minisini
c89b8a5011 [GB.GSL]
* NEW: Add a Complex.Conj() method to return the conjugate of a complex number.


git-svn-id: svn://localhost/gambas/trunk@4922 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 14:27:33 +00:00
Laurent Carlier
3045e50490 [GB.GSL]
* BUG: Properly fix library detection.



git-svn-id: svn://localhost/gambas/trunk@4921 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 12:47:55 +00:00
Laurent Carlier
44f737a21d [GB.GSL]
* BUG: Use the proper detection method for gsl library.


git-svn-id: svn://localhost/gambas/trunk@4920 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 09:07:04 +00:00
Benoît Minisini
53d05b0549 [GB.GSL]
* NEW: Work continue on Vector class...


git-svn-id: svn://localhost/gambas/trunk@4919 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-09 02:20:57 +00:00
Benoît Minisini
2402db91f0 [INTERPRETER]
* NEW: Support for imaginary number syntax. For example, using "3i" will 
  automatically load the gb.gsl component, create the corresponding complex 
  number and return it.

[COMPILER]
* NEW: Support for imaginary number syntax.

[GB.EVAL]
* NEW: Support for imaginary number syntax.

[GB.GSL]
* NEW: Support for imaginary number syntax.
* NEW: Vector class is now generic, and has two child classes: FloatVector 
  and ComplexVector, depending on the type of its elements.
* BUG: Support for arithmetic operators on Vector class has been removed. 
  It had too many problems.


git-svn-id: svn://localhost/gambas/trunk@4918 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 23:23:24 +00:00
Benoît Minisini
fc1c1e5531 [INTERPRETER]
* NEW: When converting an instance of A to the class B, try the conversion 
  interface of A first. If A has no conversion interface, or if it cannot 
  handle the B class, then try the conversion interface of B if any.

[GB.GSL]
* NEW: Vector class has been implemented.

[GB.JIT]
* NEW: SPEC_CONVERT constant has been replaced by a field in the CLASS 
  structure.


git-svn-id: svn://localhost/gambas/trunk@4916 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 20:08:43 +00:00
Benoît Minisini
ef37065297 [INTERPRETER]
* BUG: Correctly raise an error when trying to use NULL on classes 
  implementing the _operators interface.
* NEW: The _convert interface now must handle conversions from any 
  datatype.

[GB.GSL]
* NEW: Automatic conversion from numbers to Complex.
* NEW: Start implementating the Vector class.


git-svn-id: svn://localhost/gambas/trunk@4913 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 16:55:35 +00:00
Benoît Minisini
fc19d7bd78 [GB.GSL]
* NEW: Complex class has been cleaned up.
* BUG: Fix array creation in CComplexPolynomial.ComplexSolve().


git-svn-id: svn://localhost/gambas/trunk@4911 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 15:39:38 +00:00
Benoît Minisini
7bd330aa00 [INTERPRETER]
* NEW: "_operators" is a new interface that allows any native class to be
  used with most of arithmetic operators: +, -, *, /, Abs, =, <> at the 
  moment.
* NEW: The "_convert" interface now allows a class to be converted to any
  datatype, not just other classes.
* NEW: Str() and Print uses the "_convert" interface to print a localized
  string conversion of any object.

[GB.GSL]
* NEW: Use the new "_operators" interface so that complex numbers can be 
  handled by standard arithmetic operators.
* NEW: The Complex class now implements the "_convert" interface.


git-svn-id: svn://localhost/gambas/trunk@4908 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-08 14:35:58 +00:00
Benoît Minisini
8ad1afe673 [CONFIGURATION]
* NEW: Print disabled components individually.

[GB.QT4]
* BUG: ComboBox background color is correctly handled now.


git-svn-id: svn://localhost/gambas/trunk@4739 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-18 01:19:15 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
09330f7501 [GB.GSL]
* BUG: Remove from the Test project the files that must not be present in
  the subversion repository.


git-svn-id: svn://localhost/gambas/trunk@4560 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-18 11:48:39 +00:00
Randall Morgan
5da2463da1 Just updating source while working
[GB.GSL]
* NEW: Updating development code.

git-svn-id: svn://localhost/gambas/trunk@4559 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-17 17:18:54 +00:00
Randall Morgan
7dcd32d1b6 [GB.GSL]
* NEW: Added Test Suite Gambas Project to GSL Component.

git-svn-id: svn://localhost/gambas/trunk@4527 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-03-03 00:21:36 +00:00
Randall Morgan
98f3d19663 [GB.GSL]
* NEW: Change CPolynomial_SolveQuadratic and CPolynomial_SolveCubic to use
   values from internal data array. Also added Out of bounds error if the number of
   coefficients is incorrect for the called method.

git-svn-id: svn://localhost/gambas/trunk@4502 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-23 22:47:36 +00:00
Randall Morgan
7a7544fa69 [GB.GSL]
* BUG: Commented out bad line of code that cause the component to fail to compile.

git-svn-id: svn://localhost/gambas/trunk@4500 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-22 10:59:08 +00:00
Randall Morgan
b87e4f1983 [GB.GSL]
* BUG: Fixed issue with incorrect return type in CPolynomial_SolveCudic and
   CPolynomial_SolveQuadratic methods.

git-svn-id: svn://localhost/gambas/trunk@4499 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-22 10:29:26 +00:00
Randall Morgan
48097fc1e4 [GB.GSL]
* BUG: Fixed error in GslComplex_Pow method declaration.

git-svn-id: svn://localhost/gambas/trunk@4495 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-21 07:50:48 +00:00
Randall Morgan
9319247693 [GB.GSL]
* NEW: Added Hypot3 function to GSL class.
   Added initial methods to CPolynomial class.

git-svn-id: svn://localhost/gambas/trunk@4494 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-21 03:36:40 +00:00
Randall Morgan
4fe9db6123 [GB.GSL]
* NEW: Added Arg, Abs, Abs2, and LogAbs methods to Complex class.

git-svn-id: svn://localhost/gambas/trunk@4493 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-20 11:05:11 +00:00
Randall Morgan
e9a68b8af2 [GB.GSL]
* BUG: Fixed filenames in file headers. 
   Renamed static *create_complex() in the complex class
   to GSLComplex_create() so that it could be used in other
   compenent files.

git-svn-id: svn://localhost/gambas/trunk@4488 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-18 22:56:08 +00:00
Randall Morgan
a919a08cf0 [GB.GSL]
* BUG: Changed function prototypes in all files to use upper case variable names (xf) to (X)f.
   Moved frexp to c_gsl where it belongs.

git-svn-id: svn://localhost/gambas/trunk@4487 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-18 22:06:10 +00:00
Randall Morgan
e575e091cf [GB.GSL]
* DEV: Experimenting with memory allocation for polynomial
   coefficients.

git-svn-id: svn://localhost/gambas/trunk@4486 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-17 19:29:08 +00:00
Randall Morgan
281b7de7c3 [GB.GSL]
* NEW: Added ComplexPolynomial and NewtonPolynomial class files.

git-svn-id: svn://localhost/gambas/trunk@4485 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-17 07:30:59 +00:00
Randall Morgan
1e80fe0d30 [GB.GSL]
* NEW: Testing Array data handling methods for Polynomial class.

git-svn-id: svn://localhost/gambas/trunk@4484 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-17 07:29:55 +00:00
Randall Morgan
eb4195403e [GB.GSL]
* NEW: Changed Frexp function to Static method.

git-svn-id: svn://localhost/gambas/trunk@4483 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-17 06:18:41 +00:00
Randall Morgan
a8caa61c5b [GB.GSL]
* NEW: Added Frexp function to Complex Class.

git-svn-id: svn://localhost/gambas/trunk@4482 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-16 19:11:15 +00:00
Randall Morgan
cbca412899 [GB.GSL]
* NEW: Added skeleton Polynomial Class.

git-svn-id: svn://localhost/gambas/trunk@4481 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-15 23:53:45 +00:00
Randall Morgan
5b0b2b84dd [GB.GSL]
* NEW: Added Set, Rect, and Polar Methods.
   Also moved THIS declaration to source file
   And declared complex_create() in header.

git-svn-id: svn://localhost/gambas/trunk@4480 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-15 23:52:30 +00:00
Randall Morgan
bda63fc0d3 [GB.GSL]
* NEW: Alpha release of Complex Number class.

git-svn-id: svn://localhost/gambas/trunk@4479 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-14 22:22:43 +00:00
Benoît Minisini
21dac9f92d [GB.GSL]
* BUG: Update Makefile.am with new source files.
* NEW: Add a complex dynamic constructor.
* NEW: Add a complex static constructor _call().
* NEW: Add Complex.Copy().
* NEW: Add Complex.ToString().


git-svn-id: svn://localhost/gambas/trunk@4478 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-14 08:06:09 +00:00
Randall Morgan
d0757716c7 [GB.GSL]
* BUG: Uploaded bare minimum code for review.
   I still have a Null "THIS" Pointer in class methods. Hoping
   for some clarification from someone. Anyone? As to why
   this occurs in the GslComplex_Add method.

git-svn-id: svn://localhost/gambas/trunk@4477 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-13 20:45:28 +00:00
Randall Morgan
227a73b645 [GB.GSL]
* BUG: Renamed IsINF to IsInf and IsNAN to IsNan for consistancy.

git-svn-id: svn://localhost/gambas/trunk@4462 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-08 13:21:31 +00:00
Randall Morgan
84587a6328 [GB.GSL]
* NEW: Added Class Constance.

git-svn-id: svn://localhost/gambas/trunk@4461 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-06 23:56:51 +00:00
Randall Morgan
155824bde3 [GB.GSL]
* NEW: Added Complex method skeletons still under development.

git-svn-id: svn://localhost/gambas/trunk@4460 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-06 23:33:53 +00:00
Randall Morgan
05e5017371 [GB.GSL]
* BUG: Removed call to development file.

git-svn-id: svn://localhost/gambas/trunk@4459 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-06 17:39:31 +00:00
Benoît Minisini
985c1a742d [DEVELOPMENT ENVIRONMENT]
* NEW: Traditional Chinese translation made by Timothy Lin.
* BUG: Correctly take the project tabulation size in automatic structure
  completion.
* BUG: Fix the tips of the day language selection.

[EXAMPLES]
* NEW: New MineSweeper example made by Timothy Lin and slightly modified by
  me.

[GB.EVAL.HIGHLIGHT]
* BUG: 'undefined' is a javascript keyword.

[GB.FORM.DIALOG]
* NEW: Take the new Dialog.ShowHidden property into account.

[GB.QT4.EXT]
* BUG: Editor cursor is ensured to be visible when it is visible, not when
  it has just the focus.


git-svn-id: svn://localhost/gambas/trunk@4458 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-06 16:48:24 +00:00
Randall Morgan
e20f03d58d [GB.GSL]
* BUG: Fixed case in method name Log1p.

git-svn-id: svn://localhost/gambas/trunk@4457 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-06 15:32:52 +00:00
Randall Morgan
66f73016c3 [GB.GSL]
* BUG: Changed the name of the method LogLP to Log1p and Expml to Expm1.

git-svn-id: svn://localhost/gambas/trunk@4456 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-06 14:02:08 +00:00
Randall Morgan
b624cddc67 [GB.GSL]
* NEW: Added gsl_complex development files.

git-svn-id: svn://localhost/gambas/trunk@4455 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-06 13:59:56 +00:00
Randall Morgan
2aa0792aac [GB.GSL]
* BUG: Fixed error including development file.

git-svn-id: svn://localhost/gambas/trunk@4447 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-03 11:04:42 +00:00
Randall Morgan
a23643d289 [GB.GSL]
* NEW: Added IntPow() function to library.

git-svn-id: svn://localhost/gambas/trunk@4446 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-03 10:59:31 +00:00
Randall Morgan
49825cb556 [GB.GSL]
* BUG: Fixed return value for Fcpmb function.

git-svn-id: svn://localhost/gambas/trunk@4445 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-02-01 12:29:43 +00:00
Randall Morgan
da6d62931e [GB.GSL]
* NEW: Added additional elementary math function and number
  testing function.

git-svn-id: svn://localhost/gambas/trunk@4442 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-01-31 22:23:28 +00:00
Randall Morgan
7b0f463386 [GB.GSL]
* NEW: Added elementary math function and number
  testing function.

git-svn-id: svn://localhost/gambas/trunk@4441 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-01-31 11:55:38 +00:00