Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 06 19:44
    axkr commented #223
  • May 06 19:16
    tonyoruovo opened #223
  • May 06 17:16
    axkr commented #222
  • May 06 15:16
    parnold-x commented #222
  • May 05 20:19

    axkr on master

    #222 Vector/Matrix in the solve… (compare)

  • May 05 19:29
    axkr edited #222
  • May 05 19:28
    axkr commented #222
  • May 05 14:38
    parnold-x opened #222
  • May 02 11:35

    axkr on master

    jas version 2.7.40 (compare)

  • Apr 28 20:06
    axkr edited #221
  • Apr 24 14:33
    axkr edited #221
  • Apr 24 14:28
    axkr labeled #221
  • Apr 24 14:28
    axkr labeled #221
  • Apr 24 14:26
    axkr opened #221
  • Apr 24 14:26
    axkr labeled #221
  • Apr 22 20:16
    axkr updated the wiki
  • Apr 06 19:59

    axkr on master

    Improve isPossibleZeroQ / isFre… (compare)

  • Apr 05 08:03

    axkr on master

    Improve Collect for Times() exp… JUnit test cases (compare)

  • Apr 05 08:01

    axkr on master

    clean up pattern-matching for O… Improve FreeQ for "Times(...) p… (compare)

  • Apr 05 07:58

    axkr on master

    WIP start export for Expression… (compare)

Ax Kr
@axkr
Can you implement an expansion for FunctionExpand?
OleksandrMariupol
@OleksandrMariupol
Hi axkr. I was offline. I will think about these problems.
Створити точковий рисунок (4).bmp
OleksandrMariupol
@OleksandrMariupol
https://en.wikipedia.org/wiki/Falling_and_rising_factorials "The rising factorial can be extended to real values of n using the gamma function provided x and x + n are real numbers that are not negative integers:" if I understood correct, x + n should be 0 or positive integers, in case x = 2, n = 0.9 x + n = 2.9 it is not integers. So, can we use these numbers
OleksandrMariupol
@OleksandrMariupol
Hi axkr. Thank you for your time. With the information that I have, check("Gamma(2.0+1.0)/Gamma(2.0-0.9+1.0)", "1.91116"), is it valid case? x(n) = gamma(x + n)/ gamma(x), because, we have limitations for this equation: provided x and x + n are real numbers that are not negative integers => n can be real positive integers. You have other information?
Ax Kr
@axkr
@OleksandrMariupol you can generalize the formula for floating-point real and complex numbersby using the Gamma() formula
you can check the numbers with method IExpr#isInexactNumber() if they are floating-point real or complex numbers
With EvalEngine#isDoubleMode() method you can check if the user runs a numeric evaluation:
OleksandrMariupol
@OleksandrMariupol
@axkr we can use this formula Gamma(x+n)/Gamma(x-n+1) instead (x)n = x(x-1)(x-2)......(x-n+1) but in case if we have a step " for example h = 0.5, etc", we should think, if we can replace f(x) f(x-h) f(x-2h) .... f(x-(k-1)h) with Gamma(x+n)/Gamma(x-n+1) or another formula which depends on Gamma". Work (x)n = Gamma(x+n)/Gamma(x-n+1) or another formula which depends on Gamma in case when we have custom step.
OleksandrMariupol
@OleksandrMariupol
Hi @axkr I did changes that I think you wanted to see. Please, let me know if I actually understood the requirements correct. In case if so, I do not understand the benefit
of those changes because of next:
  1. It does not seem to be shorter.
  2. For me it makes logic more confusing and less generalized if to look the entire function logic (I mean where we use similar while loops in both cases, for second case we can't use gamma)
factorialgamma.png
OleksandrMariupol
@OleksandrMariupol
Maybe I am missing something, can you please help me to understand?
Also, based on the information I found (I posted the screenshort above) n can't be anything else but 0 or positive integer. Maybe I should add a verification for this case and throw an exception if it fails? Please let me what do you think.
Thanks in advance for your time. Stay safe.
Ax Kr
@axkr
Yes the screenshot shows the formulas for Java double values.
you can also use ApfloatMath.gamma(arg1)
for apfloat floating point numbers which can have higher precision than Java double values.
to evaluate for a higher precision you can use the N()function.
Ax Kr
@axkr
Example N(FactorialPower(1/3, 7 ), 30)
but the arguments of the function should be symbolic.
breandan
@breandan
Hi Axel, I've been reading about SymJa. It's an amazing piece of work! I'm particularly impressed by the effort you've put into usability. Been reading through the source code and I'm not sure how it all fits together yet, but I was curious if you currently support or plan to implement Knuth–Bendix completion for general purpose term rewriting? Is there some documentation on how the different CAS's (e.g. JAS, Rubi) fit together? Can you describe your long-term goals for the project, i.e. do you plan to focus on the user-facing application and notebook support, or do you see Symja as becoming more of a library like Sympy? Thanks for your hard work on this project!
Ax Kr
@axkr
@breandan Yes general purpose term rewriting is the goal. JAS is supported by converting from Symja IExpr to JAS and backward:
https://github.com/axkr/symja_android_library/blob/master/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/convert/JASConvert.java.
The conversion of Rubi (Mathematica pattern matching rules) is described in this wiki page:
https://github.com/axkr/symja_android_library/wiki/Porting-Rubi-Integration-rules-to-Symja.
Symja is used currently in the Android and Apple Store NCalc programs by github user @tranleduy2000.
(Very) long term goal is to use Symja as a programming language (similar to Mathematica packages) and providing a JSON API interface (with NLP functions in the future?):
https://github.com/axkr/symja_android_library/wiki/API
Евгений Буйволов
@ereborDeveloper
Hello! Did you reduce Config.EXPLICIT_TIMES_OPERATOR? I can't use it anymore. How to enable times operator?
Ax Kr
@axkr
@ereborDeveloper please use FEConfig.EXPLICIT_TIMES_OPERATOR
The project is now splitted in more maven submodules:
<module>matheclipse-external</module> <module>matheclipse-frontend</module> <module>matheclipse-core</module> <module>matheclipse-api</module> <module>matheclipse-io</module>
Евгений Буйволов
@ereborDeveloper
Thanks! Found it in unit tests. How should I properly listen for change log? Instead of reading commits I mean
Ax Kr
@axkr
A short summary of changes can be found in the release notes:
Евгений Буйволов
@ereborDeveloper
Ahh! Thanks! Very helpful
TiMauzi
@TiMauzi
@axkr Hello, I just found the Symja project while looking for a Java CAS. Did you happen to publish any papers concerning your work on this library? Would be very helpful, since I am working on a thesis at the moment! Thank you in advance! :)
Ax Kr
@axkr
@TiMauzi No there is no paper.
There is the tutorial with the available functions in markdown: https://github.com/axkr/symja_android_library/tree/master/symja_android_library/doc
A feature "highlight" is the port of the RUBI integration engine: https://github.com/axkr/symja_android_library/wiki/Porting-Rubi-Integration-rules-to-Symja
Ax Kr
@axkr
Another is the "partial" Wolfram language package support: https://github.com/axkr/symja_android_library/wiki/Context
The Compile function https://github.com/axkr/symja_android_library/blob/master/symja_android_library/doc/functions/Compile.md will be independent from the JDK in next version and will be realized with the Janino compiler: http://janino-compiler.github.io/janino/
TiMauzi
@TiMauzi
@axkr Too bad there is no paper... Thank you nevetheless for the information! :)
TiMauzi
@TiMauzi
@axkr Different question... does Symja have a method to get all literals within an IExpr object? E.g. if I have "a || b && c || c", is there a function that returns "[a, b, c, c]"?
TiMauzi
@TiMauzi
@axkr Awesome, thank you!
TiMauzi
@TiMauzi
@axkr And is there a method to invert a logical expression with De Morgan's Laws? Something like "a || b" => "!(!a && !b)"?
TiMauzi
@TiMauzi
Something like "use only '&&' and '!' but no '||'"
TiMauzi
@TiMauzi

Nice, I think I managed already:

deMorgan1 = {x_ || y_ :> !(!x && !y)}
deMorgan2 = {x_ && y_ :> !(!x || !y)}
ReplaceRepeated(fox || rabbit || chicken, deMorgan1)

... leads to: ¬(¬fox∧¬rabbit∧¬chicken), perfect :)

Ax Kr
@axkr
@TiMauzi I'm not sure what you want to get exactly, but BooleanConvert may also be an option?
TiMauzi
@TiMauzi
No, this is not what I want, since "a || b || c" would always stay the same with BooleanConvert, while I want it to become "!(!a && !b && !c)".
I want to write a formula with only "&&"s or only "||"s, and I think that's what my deMorgan1/deMorgan2 replacements are doing