SymPy (Symbolic Expressions on Python) in one video | Python # 5

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ •

  • @Empressinny
    @Empressinny 4 роки тому +385

    this is the best video to learn sympy from scratch!!

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому +2

      Glad you think so! It's actually symPy : )

    • @Empressinny
      @Empressinny 4 роки тому +1

      Ahmad Bazzi 😂😂 so embarrassing! but I learned a lot anyways thank you!

    • @the_third_edition
      @the_third_edition 3 роки тому

      True that.

  • @impossibleexperiments
    @impossibleexperiments 4 роки тому +239

    Thanks for not only showing how to use sympy but also giving quick refresh on the math behind the symbols.

  • @sandipmaurya7371
    @sandipmaurya7371 3 роки тому +73

    Wow.
    Love the video and subscribed your channel from India.

  • @gaffarsolihu1617
    @gaffarsolihu1617 4 роки тому +233

    at [10.19], how did you write the ceil and floor in markdown?, I used \ceil*{x} and \floor*{x} but it didn't display the symbol as urs did. A very big thank you for this video, I wonder how you manage to pack a lot in one video. I learned Sympy, LaTex, e.t.c. Thank you Dr.

    • @beatrizvowels2300
      @beatrizvowels2300 3 роки тому

      Btw, I aced my course because of this is a legend.

  • @kharthigeyan
    @kharthigeyan 4 роки тому +202

    Also add video about sagemath

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому

      Hello Kharthigeyan, yes SAGEMATH is interesting and i will consider it in the near future. Meanwhile, you can subscribe to the channel to receive future notifications about the channel.

  • @death_parade
    @death_parade 4 роки тому +50

    Thank you for this. Can't believe this has no comments.

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому +1

      Well now it does, haha !!

  • @subhasnandy391
    @subhasnandy391 2 роки тому

    Just a quick question. For non-linear system of equations, the solution usually depends on an initial guess as the solver would converge to the nearest possible solution. How does 'nonlinsolve()' take that into account ? Can initial values be specified as well ?

  • @antonkonovalov5236
    @antonkonovalov5236 4 роки тому +4

    Really great video! Very clear, accessible and useful overview. Learned about features that I would like to try out.

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому +1

      Thank you for your comment. Means a lot that you found it useful !!

  • @feromes2001
    @feromes2001 4 роки тому +4

    AMAZING! You have saved many hours of calculus, thank you very much

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому +2

      My pleasure Fernando. Glad you enjoyed the lecture and found it useful. Please subscribe to the channel to receive further notifications about the channel. 🙏🏻

  • @elganaelmehdi1697
    @elganaelmehdi1697 2 роки тому +1

    Can i print a Function wiyh n bariable with Sympy like this :
    f(x1,x2...,xn)

  • @जिज्ञासा-भ1ग
    @जिज्ञासा-भ1ग 4 роки тому

    hi ahamad.
    such a wonderful help to all students and teachers alike.
    i have a question
    integral(exp(x),x) is not showing pictorially though it is calculating the integral but i was wondering what have been changed in 10 months.

  • @soundcore183
    @soundcore183 4 роки тому +4

    Usually importing with a * is bad practice just saying. Awesome library, thank you for sharing.

    • @somjio5775
      @somjio5775 4 роки тому

      It does not matter, python internally imports all the code from that module even if you import a single function from a file.

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому

      If you're talking about the namespace, then yes, a lot of stuff are deposited into the namespace, which might turn out unused. But if you're talking about memory allocation, nothing harmful is being done as classes allocate memory once instantiated. Thanks for the kind words, wirelessmusic.

    • @soundcore183
      @soundcore183 4 роки тому

      @@AhmadBazzi yes just namespace stuff which helps to keep it clean anyways. A large library like nltk is just cluttering namespace. And loading i think it is faster too. But not so with a tiny library, no matter. It is not like memory alloc in cpp where an init of ints before larger types like floats is better because of memory padding. Python usually handles objects for you but not so with namespace, can grow pretty fast specially in web projects. I think also for security reasons and modular approach for example using that together with flask or rendering it with a cv library into a video maybe. You can also use gesture recognition and translate it to symbols but it is nice to keep it organized.

    • @soundcore183
      @soundcore183 4 роки тому

      @@somjio5775 for that lib it is true, but just talking about general practice namespaces and PEP. Just forget it and go on, you might jump back later changing it. I think that was also checked by a Linter which has also other critical design stuff. By loading all you just giving up some freedom, but it is completly useless instruction if the library forces that dependencies of modules on its own. Sometimes you need that 'clean code' sometimes it simply doesn't matter because of some jupyter notebook style of code. It is like iterating with an unknown variable people love using them not only in for loops but also in list comprehensions. It is like saying python give me a variable but i don't care for its name, with lambda it is the same python give me a function but i don't care for its name, and finally with astrix * python give me all methods of a module, i don't care creating a class or further embedding.

  • @pflintaryan8336
    @pflintaryan8336 4 роки тому +2

    31:02 what happens to sound here ?

    • @Maceta444
      @Maceta444 4 роки тому +4

      sharded my pants at that part

  • @davie-uz1dl
    @davie-uz1dl 3 роки тому +1

    Is it possible to create for-loops using a List of sympy.symbols ? I tried and always got the answer, that 'symbols' are not iterable.

  • @stijnvanderwal8484
    @stijnvanderwal8484 4 роки тому

    Is it possible to solve a system of equations such as "ax + by = 0", "cx + dy = z"? returning functions x(a,b,c,d,z) y(a,b,c,d,z)?

  • @yointoo
    @yointoo 3 роки тому

    How to print the integrate solution (-e**(-x), unevaluated(between 0 and oo, containing a big pipe bar) showed at 28:56?

    • @yointoo
      @yointoo 3 роки тому

      \displaystyle \left. -e^{- x}
      ight|_{\substack{0}}^{\infty}

  • @ダルワイシャンバルダワジ

    Thanks a lot, its very very informative and all at one place

  • @dhruvg530
    @dhruvg530 3 роки тому

    when you run the code how do you get the result like you get it when you use latex code?

  • @abualasif
    @abualasif 4 роки тому +161

    Hold on, are you the man from Queen Mary uni?

  • @akanittinaka
    @akanittinaka 3 роки тому

    This is the best and valuable video for me, Thank you very much!

  • @kalibbalanoor
    @kalibbalanoor 3 роки тому

    hey where can i get that notebook with the code u used for explaining

  • @shrinathdakare3725
    @shrinathdakare3725 4 роки тому +1

    Hello Ahmad. Thanks for the tutorial. Can you tell me how to write the same equations in doc or pdf using sympy?

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому +1

      Hello Shrinath, well you got an option once you click on "File" to "Publish as" any type of document you want, whether "doc" or "pdf". Let me know if you did not manage to find it.

    • @shrinathdakare3725
      @shrinathdakare3725 4 роки тому +1

      @@AhmadBazzi You mean 'file' option in jupyter notebook? After clicking on 'file' , there's an option 'download as' - it downloads both code snippets as well as output in a pdf. I can't see any option such as 'publish as'

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому +1

      yes I was using another version. Well yes, you could 'download as' a 'PDF'.

    • @shrinathdakare3725
      @shrinathdakare3725 4 роки тому

      @@AhmadBazzi Yeah tried it. But it publishes both input code as well as output. I'm trying to code a mathematics exam paper. Any idea how this can be done?

  • @pflintaryan8336
    @pflintaryan8336 4 роки тому +3

    perfect !!

  • @vnikoofard
    @vnikoofard 4 роки тому +2

    Thanks very much for making this video-class.

  • @abdallahbukhari4382
    @abdallahbukhari4382 3 роки тому

    Thank you.

  • @hamidouhrir4910
    @hamidouhrir4910 4 роки тому

    How to use the solution of ode for Plotting.

  • @virtualpeyman
    @virtualpeyman 4 роки тому

    Thanks a million Ahmad. Can one solve DAE systems with SymPy?

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому

      Hi PINQ, first of all, you're welcome; and yes, with a bit of adjustments and preprocessing to set up your Differential-algebraic system of equations, you could use sympy.solve() to accomplish this.

  • @annamorozova9631
    @annamorozova9631 3 роки тому +1

    thank you!

    • @AhmadBazzi
      @AhmadBazzi  3 роки тому

      You're welcome Anna. Glad you liked it. Please consider subscribing to the channel to keep us going :)

  • @afjalurrahman8123
    @afjalurrahman8123 4 роки тому

    How do I integrate Exp(a-b)*X without limit

  • @fahmidpolok9148
    @fahmidpolok9148 3 роки тому

    Thank you very much for the video. If it is possible please add the notebook file that you used in the video.

  • @adilmajeed8439
    @adilmajeed8439 4 роки тому

    Lambdify function - please explain

  • @furiousfellow1583
    @furiousfellow1583 3 роки тому

    dude, this module would've make my life at university!

  • @renatocosta852
    @renatocosta852 4 роки тому +3

    Pô mano, tinha em português não? Hahaha

    • @AhmadBazzi
      @AhmadBazzi  4 роки тому

      Infelizmente não. Desculpe haha.

  • @MianAffanAli
    @MianAffanAli 3 роки тому

    It looks like you are Muslim by your Name *Ahmad* but what does *Bazzi* means?