Discussion:
[fricas-devel] how to integrate a generic function in FriCAS?
'Nasser M. Abbasi' via FriCAS - computer algebra system
2018-07-12 00:07:09 UTC
Permalink
sorry for basic question, but after some search I could find what the
correct syntax is.
Some integrals I need to run in Fricas use a generic function as in f(x) in
the integrand. For example

integrate(F(x)/(sqrt(x)*sqrt(-x + 1)),x)

Fricas does not like the above
-------------------
(1) -> integrate(F(x)/(sqrt(x)*sqrt(-x + 1)),x)
There are no exposed library operations named F but there is one
unexposed operation with that name. Use HyperDoc Browse or issue
)display op F
to learn more about the available operation.

Cannot find a definition or applicable library operation named F
with argument type(s)
Variable(x)

Perhaps you should use "@" to indicate the required return type,
or "$" to specify which version of the function you need.
-----------------------

What do I need to do to make it work?
using FriCAS 1.3.4

Thanks,
--Nasser
--
You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+***@googlegroups.com.
To post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
oldk1331
2018-07-12 01:20:48 UTC
Permalink
You should use

F := operator "F"

to let the system know that 'F' is a function that can be applied to variables.

On Thu, Jul 12, 2018 at 8:07 AM, 'Nasser M. Abbasi' via FriCAS -
Post by 'Nasser M. Abbasi' via FriCAS - computer algebra system
sorry for basic question, but after some search I could find what the
correct syntax is.
Some integrals I need to run in Fricas use a generic function as in f(x) in
the integrand. For example
integrate(F(x)/(sqrt(x)*sqrt(-x + 1)),x)
Fricas does not like the above
-------------------
(1) -> integrate(F(x)/(sqrt(x)*sqrt(-x + 1)),x)
There are no exposed library operations named F but there is one
unexposed operation with that name. Use HyperDoc Browse or issue
)display op F
to learn more about the available operation.
Cannot find a definition or applicable library operation named F
with argument type(s)
Variable(x)
or "$" to specify which version of the function you need.
-----------------------
What do I need to do to make it work?
using FriCAS 1.3.4
Thanks,
--Nasser
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+***@googlegroups.com.
To post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
Loading...