Symbolic math calculations with Fortran 95

  • Context: Fortran 
  • Thread starter Thread starter Nomar_1985
  • Start date Start date
  • Tags Tags
    Calculations Fortran
Click For Summary
SUMMARY

This discussion focuses on performing symbolic math calculations using Fortran 95 on the Silverfrost FTN95 platform. The user seeks to compute expressions like "c = a + b" without initializing variables "a" and "b," aiming to retrieve the symbolic expression rather than a numerical result. Despite attempts with various data types, the user encounters error exceptions and is unable to find a solution. The conversation suggests that Fortran may not be the optimal choice for symbolic math, with alternatives like Maple being recommended.

PREREQUISITES
  • Understanding of Fortran 95 syntax and structure
  • Familiarity with the Silverfrost FTN95 compiler
  • Basic knowledge of symbolic mathematics concepts
  • Experience with error handling in programming
NEXT STEPS
  • Research symbolic computation libraries compatible with Fortran 95
  • Explore Maple for symbolic math capabilities
  • Learn about error handling techniques in Fortran 95
  • Investigate alternative programming languages suited for symbolic mathematics
USEFUL FOR

This discussion is beneficial for Fortran developers, students learning Fortran 95, and anyone interested in symbolic mathematics and its implementation in programming environments.

Nomar_1985
Messages
2
Reaction score
0
Hi all
I am struggling to work symbolic math calculations with Fotran 95 in the Silverfrost ftn 95 plataform.

Say you want to calculate c=a+b but without initializing "a" or "b" to get a value "c", but rather print out or obtain the actual generic expresion "a+b"

I have tried to solve that using different data types (REAL, CHARACTER etc) but no way to handle the error exception for me.

Could somebody please give any light on this? I am new to Fotran and have not been able to find any solution on this.

Thanks in advance
 
Technology news on Phys.org
Why do you try to use FORTRAN? Of all languages I ever used I would never select it for doing such things.
 
Hi Borek, you are right, I had the same tought.
Better to do it with Mapple,
I just wanted to know if there was a relatively "simple" way to make it out
Thanks
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
16K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 20 ·
Replies
20
Views
9K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
28K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K