GRAPHICAL SIMULATION OF NUMERICAL ALGORITHMS - An Aproach based on Code Instrumentation and Java Technologies

Carlos Balsa, Luís Alves, Maria J. Pereira, Pedro J. Rodrigues, Rui P. Lopes

2012

Abstract

We want to create a working tool for mathematics teachers and a corresponding learning tool for students, namely a graphical simulator of mathematical algorithms (GraSMa). To achieve it we try two different strategies. We started by annotating manually the original algorithm with inspector functions. Now we are testing a new approach that aims at automatically annotating the original code with inspector functions. To achieve this we are developing a language translator module that enables us to comment automatically on any code written in Octave language. The run of the annotated code gated by one of these two ways, records in a XML (eXtensible Markup Language) file everything that happened during the execution. Subsequently, the XML file is parsed by a Java application that graphically represents the mathematic objects and their behaviour during execution. The final application will be accessed on-line through a website (WebGraSMa) which is currently under development. In this paper we report and discuss about the procedures followed and present some intermediate results.

References

  1. Balsa, C., Alves, L., Pereira, M. J., Rodrigues, P.J. 2010. Graphical Simulator of Mathematical Algorithm (GraSMA). In Teaching and Learning 2010, Advances in Teaching and Learning Research. IASK.
  2. Balsa, C., Alves, L., Pereira, M. J., Rodrigues, P.J. 2010. Graphical Simulator of Mathematical Algorithm (GraSMA). In Teaching and Learning 2010, Advances in Teaching and Learning Research. IASK.
  3. Berón M., Henriques P. R., Pereira M. J. V., Uzal R., 2007. Static and Dynamic Strategies to Understand C Programs by Code Annotation, In OpenCert'07, 1st Int. Workshop on Fundations and Techniques for Open Source Software Certification.
  4. Berón M., Henriques P. R., Pereira M. J. V., Uzal R., 2007. Static and Dynamic Strategies to Understand C Programs by Code Annotation, In OpenCert'07, 1st Int. Workshop on Fundations and Techniques for Open Source Software Certification.
  5. Cruz D., Béron M., Henriques P. R, Pereira M. J. V.,2009. In Code Inspection Approaches for Program Visualization, Editor Linus Michaeli, Faculty of Electrical Engineering and Informatics, Technical University of Kosice.
  6. Cruz D., Béron M., Henriques P. R, Pereira M. J. V.,2009. In Code Inspection Approaches for Program Visualization, Editor Linus Michaeli, Faculty of Electrical Engineering and Informatics, Technical University of Kosice.
  7. Ramalho J. C, Henriques P. R, 2002. XML & XSL: da teoria à prática. FCA Editor. Lisbon, 1st Ed.
  8. Ramalho J. C, Henriques P. R, 2002. XML & XSL: da teoria à prática. FCA Editor. Lisbon, 1st Ed.
  9. Cadenhead R. and Lemay L., 2007. Teach Yourself Java 6 in 21 Days. Sams, 5th Edition.
  10. Cadenhead R. and Lemay L., 2007. Teach Yourself Java 6 in 21 Days. Sams, 5th Edition.
  11. Shreiner D., 2009. OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1. Addison-Wesley Professional, 7th Edition.
  12. Shreiner D., 2009. OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1. Addison-Wesley Professional, 7th Edition.
  13. Aho A. V., Sethi R., and Ullman J. D., 1986. Compilers Principles, Techniques and Tools. Addison-Wesley.
  14. Aho A. V., Sethi R., and Ullman J. D., 1986. Compilers Principles, Techniques and Tools. Addison-Wesley.
  15. Levine J. R., Mason T., and Brown D., 1992. Lex & Yacc. Ed. Dale Dougherty. O'Reilly & Associates Inc.
  16. Levine J. R., Mason T., and Brown D., 1992. Lex & Yacc. Ed. Dale Dougherty. O'Reilly & Associates Inc.
  17. Parr T., 1999. Practical computer language recognition and translation - a guide for building source-tosource translators with antlr and java. http:// www.antlr.org/ book/index.html.
  18. Parr T., 1999. Practical computer language recognition and translation - a guide for building source-tosource translators with antlr and java. http:// www.antlr.org/ book/index.html.
  19. Henriques P., Varanda M. J., Mernik M., Lenic M., Gray J., and Wu H., 2005. Automatic generation of language-based tools using lisa system. IEE Software Journal, 152(2):54-70, ISSN: 1462-5970.
  20. Henriques P., Varanda M. J., Mernik M., Lenic M., Gray J., and Wu H., 2005. Automatic generation of language-based tools using lisa system. IEE Software Journal, 152(2):54-70, ISSN: 1462-5970.
Download


Paper Citation


in Harvard Style

Balsa C., Alves L., J. Pereira M., J. Rodrigues P. and P. Lopes R. (2012). GRAPHICAL SIMULATION OF NUMERICAL ALGORITHMS - An Aproach based on Code Instrumentation and Java Technologies . In Proceedings of the 4th International Conference on Computer Supported Education - Volume 1: CSEDU, ISBN 978-989-8565-06-8, pages 164-169. DOI: 10.5220/0003917601640169


in Harvard Style

Balsa C., Alves L., J. Pereira M., J. Rodrigues P. and P. Lopes R. (2012). GRAPHICAL SIMULATION OF NUMERICAL ALGORITHMS - An Aproach based on Code Instrumentation and Java Technologies . In Proceedings of the 4th International Conference on Computer Supported Education - Volume 1: CSEDU, ISBN 978-989-8565-06-8, pages 164-169. DOI: 10.5220/0003917601640169


in Bibtex Style

@conference{csedu12,
author={Carlos Balsa and Luís Alves and Maria J. Pereira and Pedro J. Rodrigues and Rui P. Lopes},
title={GRAPHICAL SIMULATION OF NUMERICAL ALGORITHMS - An Aproach based on Code Instrumentation and Java Technologies},
booktitle={Proceedings of the 4th International Conference on Computer Supported Education - Volume 1: CSEDU,},
year={2012},
pages={164-169},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0003917601640169},
isbn={978-989-8565-06-8},
}


in Bibtex Style

@conference{csedu12,
author={Carlos Balsa and Luís Alves and Maria J. Pereira and Pedro J. Rodrigues and Rui P. Lopes},
title={GRAPHICAL SIMULATION OF NUMERICAL ALGORITHMS - An Aproach based on Code Instrumentation and Java Technologies},
booktitle={Proceedings of the 4th International Conference on Computer Supported Education - Volume 1: CSEDU,},
year={2012},
pages={164-169},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0003917601640169},
isbn={978-989-8565-06-8},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 4th International Conference on Computer Supported Education - Volume 1: CSEDU,
TI - GRAPHICAL SIMULATION OF NUMERICAL ALGORITHMS - An Aproach based on Code Instrumentation and Java Technologies
SN - 978-989-8565-06-8
AU - Balsa C.
AU - Alves L.
AU - J. Pereira M.
AU - J. Rodrigues P.
AU - P. Lopes R.
PY - 2012
SP - 164
EP - 169
DO - 10.5220/0003917601640169


in EndNote Style

TY - CONF
JO - Proceedings of the 4th International Conference on Computer Supported Education - Volume 1: CSEDU,
TI - GRAPHICAL SIMULATION OF NUMERICAL ALGORITHMS - An Aproach based on Code Instrumentation and Java Technologies
SN - 978-989-8565-06-8
AU - Balsa C.
AU - Alves L.
AU - J. Pereira M.
AU - J. Rodrigues P.
AU - P. Lopes R.
PY - 2012
SP - 164
EP - 169
DO - 10.5220/0003917601640169