Code covered by the BSD License

### Highlights from MAXIMA CAS in MATLAB

1.0
1.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 1.97 KB File ID: #42961 Version: 1.0

# MAXIMA CAS in MATLAB

### Jonathan Lister (view profile)

Utilize MAXIMA CAS in MATLAB as a symbolic toolbox.

File Information
Description

%MAXIMA enables the use of the MAXIMA CAS in MATLAB
% This function uses the Jacomax (Java Connector for Maxima) to start and
% connect to a session of MAXIMA. The user passes the MAXIMA command in as
% a string and the result is returned as a string that can be used in
% conjunction with the vectorize and inline command to construct a function
% that can be evaluated and plotted in MATLAB.
%
% 1. Maxima, which is found at:
% http://sourceforge.net/projects/maxima/files/?source=navbar
%
% 2. Jacomax (Java Connector for Maxima) a basic Java interface for the
% Maxima computer algebra system can be found at:
% http://sourceforge.net/projects/jacomax/files/
%
% The contents of their package must be in java class path
%
% Additionally, you must modify their jacomax.properties.sample file to
% point to your installation of MAXIMA and change the file name to be
% jacomax.properties
%
% Examples:
% result = maxima('expand((x+2)*(x+3))')
% result = maxima('factor(x^2+5*x+6)')
% result = maxima('integrate(x^2+5*x+6,x)')
% result = maxima('diff(x^2+5*x+6,x)')

Acknowledgements

Sym Py Cas In Matlab inspired this file.

This file inspired Sym Py Cas In Matlab.

MATLAB release MATLAB 8.0 (R2012b)
Other requirements A local install of the Maxima computer algebra system and the Jacomax Java connector for Maxima.
27 Nov 2015 João Pedro Alves

### João Pedro Alves (view profile)

does not work in Ubuntu 14.04

error: [java] uk.ac.ed.ph.jacomax.JacomaxConfigurationException: Could not load properties file/resource jacomax.properties using search path [CURRENT_DIRECTORY, USER_HOME_DIRECTORY, CLASSPATH]

08 Aug 2013 Jonathan Lister

### Jonathan Lister (view profile)

to compute the definite integral:

result = eval(maxima('integrate(x^2+5*x+6,x,0,4)'))

result =
85.3333

Comment only
06 Aug 2013 Jonathan Lister

### Jonathan Lister (view profile)

try this:

result = maxima('expand((x+2)*(x+3))');
f = vectorize(inline(result));
plot(f(1:.1:5))

Comment only