Fortran Symbolic math calculations with Fortran 95

AI Thread Summary
The discussion centers on the challenge of performing symbolic math calculations in Fortran 95 using the Silverfrost ftn 95 platform. The user seeks to compute a symbolic expression like "c = a + b" without initializing the variables "a" and "b," aiming to output the expression itself rather than a numerical result. Despite experimenting with various data types, the user has encountered difficulties with error handling and has not found a solution. Other participants suggest that Fortran may not be the best choice for symbolic math, recommending alternatives like Maple for such tasks. The user expresses a desire for a relatively simple solution within Fortran.
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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
12
Views
15K
Replies
20
Views
9K
Replies
7
Views
3K
Replies
4
Views
27K
Replies
13
Views
4K
Replies
2
Views
4K
Replies
16
Views
2K
Back
Top