error when uploading a package in maple - maple

I want to upload a package called "APECS" on maple , but when i do it, it sends me an error:" Error, (in with) package numtheory does not export isolve" and "Error, unable to read biraF or legen or f or cat " but when i upolad them , the problem is still there. how can i fix this problem. plus, i should say this package is written in maple 6 and 5 ( respectively APECS 6 and APECS 5) but i have maple 2015 on win 8.1 on laptop, so please tell me can i fix this problem on maple 2015 , or give me an alternative way like how to change setting to maple 5 or 6, or finally how to get maple 5,6 if it is necessary
the official website for this package is :
http://www.math.mcgill.ca/connell/public/apecs/
i downloaded APECS.tar.z then extract it and then uploded. what's wrong?
thanks

Related

mex function undefined error while running matlab project in octave

I am actually new to matlab.
I am trying to run this matlab project in octave on my ubuntu machine. It has a function with name 'bm3d_thr' used in one of the files (line 342 of BM3D-Net/library/bm3d-denoising/BM3D.m file) as shown below:
y_hat = bm3d_thr(z, hadper_trans_single_den, Nstep, N1, N2, lambda_thr2D,...
lambda_thr3D, tau_match*N1*N1/(255*255), (Ns-1)/2, (sigma/255), thrToIncStep, single(Tfor), single(Tinv)', inverse_hadper_trans_single_den, single(thr_mask), Wwin2D, smallLN, stepFS );
Also I have the corresponding mex file (with name 'bm3d_thr.mexa64') in my octave path.
Issue is when i try to run the project(by saying 'demo'), it gives following error:
error: 'bm3d_thr' undefined near line 342 column 9
error: called from
BM3D at line 342 column 7
bm3d_net_res at line 5 column 7
demo at line 9 column 7
Can someone please help me to figure out what is going wrong here and make it work. I guess the problem is that mex file was not compiled on my machine but authors haven't provided the source code for this mex file.
Any help would be appreciated.
Thanks in advance.
Binary MEX files from Matlab are not compatible with Octave. You need to recompile all the MEX files in your project from source using Octave's mex or mkoctfile --mex commands.
If the authors have not provided the source for this MEX file, you are SOL. Post an Issue on their GitHub repo asking for the source code. And good luck. :)

cannot get streams work on eclipse

I recently installed JDK 8 on my Eclipse (MAC) and I m trying to use the streams.
However, it seems that Java 8 is not correctly configured since I get the following error on the following line of code:
List<Eshop> tempShops = eshops.stream().filter( e -> e.getName().equals(name)).collect(Collectors.toList());
Multiple markers at this line
- e cannot be resolved to a variable
- e cannot be resolved
- Syntax error on token "-", --
expected
Anybody has an idea what might be wrong?
EDIT
Also tried like
List<Eshop> tempShops = eshops.stream().filter( (e) -> e.getName().equals(name)).collect(Collectors.toList());
Eclipse Kepler did not contain Java 8 support (unless you installed a patch).
You should use the current Eclipse Neon (4.6.1) for full Java 8 support.
I had the same problem. I created a predicate separately and the java.util.function.Predicate package got auto imported and the error was resolved.
You could try something like this:
Predicate shop = e -> {return e.getName().equals(name);};
List tempShops = eshops.stream().filter(shop).collect(Collectors.toList());

coq Error: Cannot find library abstract_algebra in loadpath

I am testing one of the contrib libraries of coq called corn: https://github.com/c-corn/corn
But I can't get the files to pass compilation. According to the README file, the package compiles with coq-8.4pl4. But when I tested that version, I got an error message:
...
coqc algebra\RSetoid -R . CoRN
File "d:\temp\corn/algebra\RSetoid.v", line 26, characters 0-32:
Error: Cannot find library abstract_algebra in loadpath
I also tried the latest 8.4 version (8.4pl6) and 8.5 beta 2, and got similar errors. The problem line itself reads:
Require Import abstract_algebra.
I am not familiar with this library (abstract_algebra). Does anyone know about this library, where to get it, or how to fix this error?
(I googled around the error message, and there was no mention of the abstract_algebra library).
Thanks in advance.

Modelsim .WLF file version error

I am using Modelsim ALTERA STARTER EDITION 10.1d and am importing a waveform file but am getting the following error.
The WLF file version is 132.Modelsim 10.1d can read up to and including WLF file version 121.
I have tried importing the same file into Modelsim 13.1 and am still receiving similar problems. If anybody knows what version of Modelsim I need to open this file version your help would be most appreciated. Thanks!
It looks like the version number is the fourth byte in the WLF header (121 = 0x79). I manually edited a version 121 file to bump up this field and got the same version warning you are seeing. Your version 132 file should have 0x84 in its fourth byte. You could manually edit the file to reduce its version and hope the format is otherwise compatible with the older version of Modelsim but there are no guarantees.

PSpice MATLAB/Simulink Interface for Orcad 16.5

I am using Matlab 7 SLPS version 2.65 and Orcad 16.5 but I am getting the following error when I try to execute the sample program. Attaching the screenshots Any help will be Highly appreciated.
If there are multiple versions of SLPS available in your system, the path of the recent version should be set higher in the set path. This error is due to the configuration mismatch between different versions of SLPS.