compa complex analyzer
play

CompA: Complex Analyzer Xiping Liu(xl2639) Jianshuo Qiu(jq2253) - PowerPoint PPT Presentation

CompA: Complex Analyzer Xiping Liu(xl2639) Jianshuo Qiu(jq2253) Tianwu Wang(tw2576) Yingshuang Zheng(yz3083) Zhanpeng Su(zs2329) Introduction CompA is a strongly typed language supports complex number and matrix computations. The frequent


  1. CompA: Complex Analyzer Xiping Liu(xl2639) Jianshuo Qiu(jq2253) Tianwu Wang(tw2576) Yingshuang Zheng(yz3083) Zhanpeng Su(zs2329)

  2. Introduction CompA is a strongly typed language supports complex number and matrix computations. The frequent use of matrix and complex number in engineering related problems inspire us to built this language that is good at complex arithmetic and matrix manipulation.

  3. Our Goal Design a imperative language specialized in complex arithmetic and matrix manipulation Simplicity of treating a complex number as a tuple Matrix data type for matrix functions and manipulation Complex data type for complex arithmetic A sufficient rich library of complex functions and functions of matrix manipulation

  4. Overview C-like syntax Main Data Type: matrix, complex Rich complex-oriented standard library Compiles to the LLVM

  5. Basics Primitive Types: Data Types: int, float, bool, string complex, matrix Function Declaration: Declaration and Initialization: cx a; void populate_2D_int(int[ ][ ] x, int a, int h, int w) { a= (1.2, 2.4); int i; for (i = 0; i < (h*w); i = i + 1) { int[2][3] m; #x = a; populate_2D_int(%%m, 1, 2, 3); x = ++x; } }

  6. Simple Tutorial Function Name Function Return Type Parameter Type Parameters Declare Complex Variable Imaginary Part and Read Part Assignment Return Statement

  7. Generic Type Printing

  8. Matrix Addition & Printing Output

  9. Semantic Check Error Message

  10. Semantic Check Error Message

  11. Built-In Functions sqrt, sin, cos, powi, pow, exp, log, log10, fabs, min, max Output

  12. Demo

  13. Q & A Thank you!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend