Commit Graph

10 Commits

Author SHA1 Message Date
Julien Fischer
8c7beeccdc Update programming style in extras/complex_numbers.
extras/complex_numbers/*/*.m:
    As above.
2022-01-18 16:23:55 +11:00
Julien Fischer
1bac7f91fe Cleanups for the complex numbers library.
Estimated hours taken: 1
Branches: main, release

Cleanups for the complex numbers library.

extras/complex_numbers/*.m:
extras/complex_numbers/samples/fft.m:
extras/complex_numbers/tests/complex_test.m:
	Convert these modules to four-space indentation.

	Conform to our current coding standard.
2006-04-10 06:33:27 +00:00
Ralph Becket
99a227a3bc Use Re + Im*i' instead of complex(Re, Im)'.
Estimated hours taken: 0.25
Branches: main

extras/complex_numbers/samples/fft.m:
	Use `Re + Im*i' instead of `complex(Re, Im)'.
2005-09-12 04:34:45 +00:00
Ian MacLarty
492eeb30ab Get the complex numbers sample to compile.
Estimated hours taken: 0.2
Branches: main

Get the complex numbers sample to compile.

extras/complex_numbers/samples/fft.m:
	Add a main predicate so this sample compiles.
2005-09-08 07:44:02 +00:00
Julien Fischer
ae4b976adc Standardize the module qualifier used in this modules
Estimated hours taken: 0.1
Branches: main, release

extras/complex_numbers/*.m:
extras/complex_numbers/samples/fft.m:
extras/complex_numbers/tests/complex_test.m:
	Standardize the module qualifier used in this modules
	to `.'.
2005-02-09 12:50:24 +00:00
Julien Fischer
0a25274404 Fix up some minor things in the extras distribution.
Estimated hours taken: 0.5
Branches: main

Fix up some minor things in the extras distribution.

extras/cgi/Mmakefile:
	Don't warn about mercury_www not exporting anything.

extras/complex_numbers/*.m:
	Replace `:' as the module qualifier.

	Use float.float/1 instead of the now obsolete
	int.to_float/2.

extras/concurrency/midimon.m:
	Replace `:' as the module qualifier.

extras/trailed_update/Mmakefile:
	Don't warn about trailed_update not exporting anything.

extras/xml/*.m:
	Replace `:' as the module qualifier.
	Remove some unnecessary imports.
	Put an underscore in front of an unused variable.
2004-07-30 07:04:45 +00:00
Fergus Henderson
0a70f11335 Fix a compilation error: need to import the
Estimated hours taken: 0.25

extras/complex_numbers/samples/fft.m:
	Fix a compilation error: need to import the
	parent module `complex_numbers' before importing
	the child module `complex_numbers:complex'.
1998-11-18 16:29:40 +00:00
Fergus Henderson
ae9150f1a1 Use sub-modules to package up the modules in extras/complex_numbers
Estimated hours taken: 0.25

Use sub-modules to package up the modules in extras/complex_numbers
into a single module.

extras/complex_numbers/complex_numbers.m:
	I forgot to `cvs add' this file before committing my last change.

extras/complex_numbers/samples/fft.m:
	I forgot to change the `import_module' declaration here
	to import `complex_numbers:complex' instead of `complex'.
1998-05-30 12:10:19 +00:00
Thomas Conway
8d79000cf8 Place various bits of sample code in the public domain.
Estimated hours taken: 0.1

Place various bits of sample code in the public domain.

extras/complex_numbers/samples/fft.m:
extras/graphics/samples/calc/calc.m:
extras/graphics/samples/maze/maze.m:
samples/ultra_sub.m:
	place the source in the public domain.
1997-09-11 22:08:56 +00:00
Fergus Henderson
c0e6ab9bbf Add an Mmakefile to build the complex number library, using the
extras/complex_numbers/*:
	Add an Mmakefile to build the complex number library, using the
	new support for user-defined libraries.
	Move the test cases into a new subdirectory `tests'.
	Add a new subdirectory `samples', containing an example
	module `fft.m' that uses the library.
	Add a README file.

extras/complex_numbers/complex.m:
	Add new functions `complex/1' (converts float to complex),
	`cis' (cos + i * sin), and `conj'.
	Rename `norm' as `abs2' (square of absolute value).
1997-07-16 07:54:37 +00:00