What does matlab have that other languages don't? Are cucks really paying $100 for few mathematical functions and array starting with 1?
What does matlab have that other languages don't? Are cucks really paying $100 for few mathematical functions and array starting with 1?
>paying
Piss-easy
Good default plotting tools
Simulink
Built-in GUI building
Everything what can be done in matlab can be done in Python easily
This is your brain on Python
>noooo my moneysinking IS heckin' justified
>python is so great it makes users think thay can accomplish anything with it
checks out
Please do tell me how you convince a research department to switch to a different set of tools using Python?
The equation changes the moment you are not a solo basement dev
The day your team wants to realease something usefull soft to the comunity (not just a script) they need to move to python. Even if they somehow think to create privative code to selll, just using matlab would destroy any posibble proffit.
>Please do tell me how you convince a research department to switch to a different set of tools using Python?
"It's free"
Lmao what? All major unis have switched or have started switching from MATLAB to Python.
Almost all public STEM libraries and research is being done with Python.
>can be done in Python easily
suppose you've the following file
Day1 Day2 Day3 Day4 Day5 Day6 Day7
95.01 76.21 61.54 40.57 5.79 20.28 1.53
23.11 45.65 79.19 93.55 35.29 19.87 74.68
60.68 1.85 92.18 91.69 81.32 60.38 44.51
48.60 82.14 73.82 41.03 0.99 27.22 93.18
89.13 44.47 17.63 89.36 13.89 19.88 46.60
show how to import the data as matrix
in matlab it's
importdata(filename,' ',1);
> importdata(filename,' ',1);
same in python
NameError: name 'importdata' is not defined
You're really comparing languages by looking at the standard library?
matlab is a package not a language
from their website:
MATLAB® combines a desktop environment tuned for iterative analysis and design processes with a programming language that expresses matrix and array mathematics directly.
matlab is also / includes a programming language, so it can be compared to other programming languages
Obviously you have to import matlab first.
numpy's loadtxt says hi. You could also use pandas if you want
import pandas as pd
pd.read_csv(filename, sep='t')
mathcucks btfo yet again
> pandas
> written in: C
Anon, loading a CSV file of all numbers isn't anything special. It was a bad example in the first place.
>import pandas as pd
>pd.read_csv(filename, sep='t')
Right. Now assign the matrix to a bus in simulink, select columns 1 and 6 as sources for a variable coefficient transfer function, run it with an implicit, fixed-step solver and compile the validated model to c code for a cortex-based microcontroller, while also generating an executeable file for your co-workers without a license.
Anyone comparing matlab with python has not worked a single professional minute.
Pythonusers can not even come up with the trivial differential equation
Sir please do the needful and change the solver from a fixed-step to a variable-step solver. Your simulation takes way too many resources :^)
>not using state-space notation
Ngmi
>Anyone comparing matlab with python has not worked a single professional minute.
Probably hasn't worked with anything where matlab could conceivably be any useful, which is an extremely narrow set of things, typically things that software engineers (i.e. most of people who actually professionally write code) never deal with. But not necessarily hasn't worked at all.
>typically things that software engineers
not a single software engineer works with matlab, it's for automation engineers, chemists, mathematicians and other non-programmer kind of specialists that need a simple, effective preferably graphical computation/solving/helper package
Neither does with python. C/Java/C# are real languages.
This guy gets it.
Many labs are moving away from Matlab because using closed-source modules is not kosher in academia. Some publications will straight up reject your paper if they get a whiff of proprietary code.
>Some publications will straight up reject your paper if they get a whiff of proprietary code.
where the frick do you live? in yurop no one will bat an eye if you submit your work in anything other that Industry© Standard™ Matlab®
>where the frick do you live?
in the US (the center of the academic world). if you haven't noticed the trend towards open-sourced code (NeurIPS, IJCB, ECCV, KDD, etc.) at conferences then you yuropoors are more out of touch than i'd thought
Name specifics please because in US Engineering Academia Matlab is the industry standard. They also gave us python and I had to use it but I found it much less user friendly than Matlab and with many fewer built in functions.
>muh modules
>muh libs
Shut up homosexual that is why Linux sucks.
IEDM will just reject you if you try and publish a simulation paper which is not your code.
>Now assign the matrix to a bus in simulink, select columns 1 and 6 as sources for a variable coefficient transfer function, run it with an implicit, fixed-step solver and compile the validated model to c code for a cortex-based microcontroller, while also generating an executeable file for your co-workers without a license.
This is current age "lego engineering" where you just use plugins and tools others made, don't understand linear algebra or automation control theory enough to just write your own stuff in Python, or any language for that matter. I bet you feel really proud for knowing all those really big words, lmao
You obviously don't understand that shit either since you think you need to solve linear algebra equations to upload code to a microcontroller
>"select columns 1 and 6 as sources for a variable coefficient transfer function"
up a compiler is "a lot of job"
lmao, lego engineer
You need to more inclusive to those who ARE NOT able to DESIGN, SCRIPT and VALIDATE complex systems in the REAL WORLD
We already made made cgi and game design simpler with BLOCKS and it is only matter of time for all of programming to be ACCESSIBLE to others OKAY
I am legitimately disgusted by the amount of Dunning-Kruger and unwarranted feeling of superiority. As an automation engineer you specifically learn the mathematics behind processes and how do describe a system, or how to control a system. You learn what's the best model to describe something like a car, learn the various control schema and their mathematic descriptions and properties, learn about trajectory generation, how to transform feedback with noise, etc.
None of it has anything to do with learning how to write from scratch a decent tool that lets you write down the mathematical abstraction fast and then run efficient simulation with convenient visualization tools, or prototype it on a microcontroller without writing the same equations once again in C. You're not interested in using inconvenient tools and reinventing numerical integration, software optimization, GUI, or whatever. Those have nothing to do with your area of expertise and are merely a roadblocks at most.
Btw all those guys who worked with Matlab at my uni were old white dudes with PhDs.
Before simulink when designing a control system or anything like that you would draw the system by hand first with pencil with your group of people. Then do all the math. Then write the code. Then test the code. If it doesn't work how you want it you go back to the drawing board adjust your model change the code then retest. Simulink removes all these steps and combines it basically into one. You can simulate and adjust your model before producing the code. The math depending on the system gets very complicated and error prone if done by hand or computer and cumbersome definitely with complicated shit and working on a group.
>Now assign the matrix to a bus in simulink
your specific data structures are irrelevant. anything your "bus in simulink" can do can be done by a pandas dataframe or a numpy ndarray.
>select columns 1 and 6
you can select columns in pandas dataframes and numpy ndarrays.
>as sources for a variable coefficient transfer function
scipy.signal.TransferFunction
>run it with an implicit, fixed-step solver
scipy and sklearn have iterative solvers of various kinds -- pick your favorite
>compile the validated model to c code for a corex-based microcontroller
now you're just asking me to solve your course homework. if the part of this workflow that causes you to break down in tears is compiling python code to C, there are many utilities for doing this of various complexity but i have zero expertise with them so have with the requisite 5 minute google search.
>while also generating an executeable file for your co-workers
no executables necessary when dealing with python -- they can just run the source
>without a license
lmao moron
t. PhD student
word
>all of this cope when Julialang is right there
there is literally an entire language developed with the aim (which has been accomplished, in my experience) of being "Matlab, but with all the benefits of Python"
everyone who i have worked with that does any real applied math or scientific computation uses Python, C, Julia, or Fortran. none of them have used Matlab outside of specific courses in undergrad/grad school because it is horrid and there are much better tools out there.
pandas.import_csv("troon.goon")
>matlab gay has literally never heard of numpy or pandas
lmao
Show me how you do this with Matlab versions prior to 2020, because you are going to find licenses cost so fricking much that lots of orgs don't upgrade.
Bonus points: you can't do it with it Windows-only function calls.
>Show me how you do this with Matlab versions prior to 2020
importdata
it's there since ever
MATLAB is actually much faster than Python. It handles matrices better too.
>MATLAB is actually much faster than Python
When people say "Python" in a scientific computing context, they really mean Python + NumPy/SciPy. All the heavy lifting is done in libraries written in C.
So why do I see a large performance gain by using a 'just in time compilation' like numba or cython?
*Julia
>making a plot in Matlab: .1s
>making a plot in Julia: 30s
no thanks
Time to first plot does suck, but you more than make up for that time by having better optimization, and dealing with less idiocy in the language.
MATLAB has a based GUI
Show me how to simulate a simple RLC circuit in Python
>no answer
Oh no no no pythonsisters...?
homie no one here knows what an RLC circuit is, including me.
from vpython import *
Emf = 5
C = 1e-4
L = 0.2
R =10
Q = C * Emf
I = 0
t = 0
dt = 0.0001
w0 = 219
tgraph = graph(title="RLC Circuit", xtitle="Time (s)", ytitle="V (volts)", width=500, height=350)
fl = gcurve(color = color.blue)
print("w0 = ", 1/sqrt(L*C))
while t < .8:
alpha = Emf * cos(w0 * t) / L + Q / (L * C) - I * R / L
I = I + alpha * dt
Q = Q - I * dt
t = t + dt
Vc = - Q / C
fl.plot(t, Vc)
w0 = 2 * pi / 2.87e-2
print("w0 = ", w0, " rad/s")
>homie no one here knows what an RLC circuit is, including me.
Filtered
>RLC circuit is, including me
resistors, capacitors, inductors... i thought IQfy was filled with CS students who have taken physics 2?
Runge-Kutta 4 can be implemented easily in Python and Numpy. Also IIRC there's something like Modelica in Python.
why on earth would you do this in python or matlab? just use any of the popular spice simulators: pspice, mc12, ngspice, ltspice, etc.
I can tell you are not used to Matlab.
They are not comparable since they serve different purposes.
You can say the same about C. Everything can be done using C still you are not moronic enough to do your own simulink or making a web server using c.
>Python
I used Matlab professionally for 6 months, and before that I used it in uni.
Then I used Python for the first time, and it sucks. Matlab's ide is so nice for debugging, for inspecting variables that contain matrices and other complicated structures, and for other things. These things make a big difference.
Plus, all the available libraries with great, to the point documentation with easy to understand examples for everything. Open source documentation is absolute garbage, and guido is a moron.
>matlab’s ide is better
You know you can use any ide you want for python right? PyCharm has every feature you’ve ever wanted in an ide, and the community edition is free.
>You know you can use any ide you want for python right
Yes but that's not a real answer.
You don't tell someone who likes their current IDE (one designed and maintained for the kind of work they do) that they really need to try the latest meme IDE from your favorite company that has every feature under the sun.
>ide for debugging and inspecting variables
You get all that in VSCode, PyCharm and JupyterLab you fricking homosexual.
You don't understand how Python is used for scientific programming.
>VSCode, PyCharm and JupyterLab
all shit compared to matlab
>guido is a moron
I lost all respect for this guy after he tried to kick map/filter out against the will of the community. I dare you to try to use a list comprehension for a mildly complex process with more then two variables, it is a pain in the rear. Also Python 2 had a better syntax, everyone knows that.
Python is a entry level gateway language of the worst kind. Nobody does whitespace indention and all those quirky design decisions like splitting on a delimiter instead of the string (wtf?), Pythons OOP is ugly, Python tries to avoid clean and proven functional features yet sneaks in stuff like function decorators which most Pytards probably don't even understand. Functions are first class yet you cant do something like:
a = b (if c < 0 - else +) c
I coded in dozens of languages and Python is the one language where I always have to look up which moronic language construct I have to use here.
Pythonic my ass.
I can only aspire to be this based
>splitting on a delimiter
You're thinking of join.
>Python OOP is ugly
All OOP is ugly. At least Python is concise.
>function decorators which most Pytards don't understand
Because most Pytards don't need it.
>functions are first class yet you can't do [horrible shit with operators]
Non sequitur. Operator frickery is bad and always damages the readability of your code.
Plotting ain't that good but anaconda+spyder will do almost everything
Most people who use Matlab don't pay for it out of pocket and are part of some larger organization that pays for their licenses. More reasonable comparisons to Matlab are GNU Octave and R Studio.
Where is the python alternative to simulink?
I'll answer the question for you, there is no alternative at all. Only thing that you can kind of do the same is LabVIEW but obviously you can't poop out your C code with lab view so its not really an alternative.
Non of those are in any way true.
>Piss-easy
Not compared to any other scientific scripting language
>Good plotting
Kek. Taking matlab plots and getting something publishable out of them is a life long goal.
>Simulink
really Black person
>GUI building
Even fricking Visual basic is better than Matlab GUIs.
Matlab is just moron physics post docs being autistic. Ignore it.
libraries that are reliable, instead of the shit made by the ~~*community*~~ that python has.
best interactive plotting window in the market.
>publishable
only brainlet academia cares about publishing. engineers have stuff to build.
>only brainlet academia cares about publishing. engineers have stuff to build.
the most lucrative jobs in engineering are all research positions in gayMAN companies you absolute dunce
the people consistently making 500k per year are almost always research scientists whose sole goal is to publish or lead a research project
lead a researcher for private company != brainlet graduate student trying to publish papers to make his resume look pretty
>moving the goal posts
your post was moronic and i pointed it out. just accept you were wrong and move on, moron.
>engineers have stuff to build.
this is the goalpost since the beggining, smoothbrain.
oh okay you're illiterate as well
carry on, then
R&D is part of building. publishing is not. maybe you will realize this if you get an engineering job one day.
>R&D is part of building.
the people in charge of R&D (the real R&D that leads to huge salaries) are all primarily occupied with publishing
this is the reason papers published by Google, FacebookAI, and other industry research labs make waves while your codemonkey "engineering" job is buried underneath 5 levels of bureaucracy
google and facebook release only the papers that benefit them. it is a part of their business model to attract investors. you wouldn't know that, of course.
>shifting goal posts again
sasuga, anon
>you wouldn't know that, of course.
i'm more familiar with the publishing process that you will ever be, seeing as i have actual publications tied to my name lmao
>i have actual publications
so that's why you are so butthurt to have your mediocrity exposed to you
I never said publishing is not work though. I said:
>only brainlet academia cares about publishing
and it is still true. the majority of the work is still kept private.
>so that's why you are so butthurt to have your mediocrity exposed to you
you're the one coping and seething lmao
>lmao
>i bet your big engineering brain really rakes in the big bucks
thanks anon. you're welcome
pathetic post
>>only brainlet academia cares about publishing
yet you conceded that Google and Facebook care about publishing
i bet your big engineering brain really rakes in the big bucks
>it is a part of their business model to attract investors.
ah so you concede that publishing papers is productive work
thansk for defeating your whole argument
Give me ANY other piece of software that can produce a plot like this in under 10 lines of code.
Mathematica is also based.
Octave is pretty close, but yeah MatLab is still better. Even better, if you know how to datamine the figure objects, you can recover the original data. That has saved my ass a few times.
finn detected
R/Rmarkdown can do that and make it pdf for you at runtime lol.
bro people do shit like this in R every day it is one of the most trivial things you can do with that language
literally one line to make a visual out of a stats data struct in R
gnuplot
scilab
Isn't plotting in MATLAB really moronic? I remember reading it in uni and it was some weird shit like "hold on" and stuff. I don't remember exactly but the fact it wasn't just a function bewildered me
just make your institution/company pay for it.
hold on is for adding the stuff you are going to plot to the current figure without creating a new one. it's useful sometimes.
just use Raylib
I dont pay. Institution pays.
It got scientifical libraries out of box.
Language is great.
>Language is great
pre-saved algorithmes
virtual calculator to show lnx linear equations
is more based on visual mathematic
>pre-saved algorithmes
you mean libraries?
Simulink but the idiots dont know Open Modelica exists
>What does matlab have that other languages don't?
Other than being one of the best, if not the best, programming language? It's a pretty powerful and versatile.
Also, it's the standard in my field.
>Other than being one of the best, if not the best, programming language?
Only within its domain. There's a lot of things that people do with programming languages that Matlab simply can't do. (For example, you'll never run it on an embedded 16-bit microcontroller, for example, but that's something that some people need to program for. It's also rather strongly ill-suited to doing web service programming, which tends to be much more about string processing and async I/O and not numeric processing. And I've never heard of anyone running it in a browser or writing games or operating systems in it.)
Programming is a wide wide open space.
>you'll never run matlab on an embedded 16-bit microcontroller
i have done that, will continue doing it and will never stop doing it. matlab transpiles to C that can run on anything
>that can run on anything
Probably not; I bet it assumes it's got floating point.
C does software float on anything, nig/g/a
Frick off unigay, cope and learn javascript
Why not just use Julia, unlike matlab is Open Source and it was made precisely for scientific computing.
Julia is garbage
https://yuri.is/not-julia/
This is exactly how the free software community as a whole operates.
When you work for free the only compensation you get is pride, and for such people, there are *no* *refunds*.
Simulink is based and for chemical engineers only. You're not allowed to be one of us
$100? Try $20k per machine.
If you buy a raspi 400 you get a free copy of Matlab. I doubt they'd be shipping it as a freebie on a $100 toy computer if it was a $20k piece of software.
>If you buy a raspi 400 you get a free copy of Matlab.
you get a free copy of mathematica too, which is better
>home license
It begins at $1000 a year, around three times that for a perpetual license. With Add-Ons that price goes up. A lot.
Drivers for some obscure research tools.
>What does matlab have that other languages don't?
65 years old math professors who doesn't care about learning 6th language in their career and just want to write down that damn formula.
It depends on what you mean by "other languages"
regarding other GPL, matlab is more suited for math/eng application
I don't know other DSL enough to compare them, they are pretty much all based on the same open library/specification but what's change is the syntax and perfomance I guess
btw the biggest matlab problem is that it's used "as needed" and thus the majority of matlab users write shit spaghetti code
>What does matlab have that other languages don't?
Dr. Billy V. Koen
A large pool of boomers who can't be fricked to learn anything else.
>array starting with 1
Option Base 1
homie what
>physics 2
they covered that shit for like 30 seconds lol
Some community written tools are above and beyond better than anything else.
I saved my dissertation by switching from python to MATLAB. Thank frick for proprietary software.
My uni license expired and since I dropped out my master I didn't have access to a new license. I took the chance to pivot and start learning python. I instantly hated python. I was foaming from my mouth from the hatred. Everyone creaming themselves over Python on how easy is to learn and how many resources there are, and then right out of the bat you're confronted with an infinite wall of informations, all trying to say more or less the same thing in some different way. It's noise, just noise, finding what you need is needlessly time consuming, but you can get through it. You start mashing keys and immediately realize that python is no substitute for matlab. You glue shit on top, to make it work like matlab but it isn't matlab, it's basically a velcro ball. You stick the fluffy ball that allows you to do mathematic shit that isn't supported natively by python, advanced stuff like trigonometry, you stick the fluffy ball that lets you handle matrices, and then you're ready to not do what you need to achieve, but spend hours learning the ass backwards way they expect you to use these stupid functions. Matlab is proprietary shit, but it's fricking plug and play and will make your life easier.
>Use gnu-octave
Literally just as if not better than CuckLab
Use free software OP not this property shit.
If you don’t like that, use python and learn a REAL programming language while learning mathematics twice as based
Better yet, use Python with something like SageMath.
Sage is a CAS
not comparable to numerical computing packages
>Literally just as if not better than CuckLab
unless Octave's financial library added the 80% of missing functions last year, no
I've tried using Octave, and it just drives me mad.
Their documentation is super sparse compared to MatLab, and the behavior of all the functions in Octave is *JUST* different enough to break all my scripts.
MATLAB is too based for this board, please delet.
A = flipud([1:1:n;]')
>A = flipud([1:1:n;]')
You can iterate backwards, no need for flipud
A=[3:-1:0]
>-1
easy mode failed
You used a negative sign. Fail!
there must be a way to solve this with bitwise operations
something like
function(n){
if (NOT n)
return;
i=1;
while NOT(n AND i)
i=i<<1;
i=i XOR 1;
print(n);
n = n XOR i;
function(n);
Idk how to comment but i is a mask of which bits to flip. You start from the LSB and stop when you find the first 1.
If you want to do it on actual hardware and without using an adder you can use stuff like thermometer encoders.
program countdown;
var i : integer;
begin
for i:=5 downto 0 do
writeln('i = ', i);
readln;
end.
cniles btfo
def countdown(n):
[print(x) for x in reversed(range(n))]
laddies learn the standard lib: range(start, stop[, step])
thanks, i didn't know about that third param
doesn't work with negative values moron
you can't use that argument to step backwards through the generator
>For a negative step, the contents of the range are still determined by the formula r[i] = start + step*i, but the constraints are i >= 0 and r[i] > stop.
really makes me think
just try it out, moron. it doesn't work.
python wins again
>using reverse()
NGMI lad
>Converting a generator into a list so that you can slice it resulting in two loops, un-needed memory allocation, and less clear code.
>shiggidy
you are already converting the generator into a list when you call reversed()
Turns out we're both moronic.
They're the same, mine is still clearer
your bottleneck is in the print function inside the loop, dumb dumb. not in the reverse/flip
Thank you kind anon, couldn't see the forest through the trees. I knew my way should be faster.
Eat shit
running matlab inside a windows 11 vm in a mac mini m1 (parallels)
tic
for i=1:20000000
x=fliplr([1:5])';
end
toc
Elapsed time is 22.012492 seconds.
how can pylets even compete
You're not iterating over the array after generating it though, so you wouldn't.
The list comprehension in python actually allows you to call a function on the variable such as print. I only excluded it there to show that using the reversed function is faster than converting to a list and slicing it backwards.
and no, reversed does not reverse the list so it doesnt fail the constraint of string reverse, it just iterates over the list backwards same as it would with [::-1], the only difference is that it can be used on any iterator. As apposed to the reverse method which would actually reverse the list in place.
Your code is more equivalent to pic related which is very different than the problem.
Also no one said python was fast.
holy cope. why are you trying to justify your mistakes? you shouldn't have written shitty code in the first place
btw, just so you can be happy, my 2 cents
def countdown(n):
[x for x in range(n,0,(~1+1))]
>Eat shit
lmao i really don't think you understand and that is so sad
>we're both moronic
nah mate, i was clear on what i was doing from the beginning
>mine is still clearer
that's not a good thing baka
in c it is just
#include <stdio.h>
void countdown(int n){ while(n > 0){ printf("%dn", n); n = ~(~n+1); } }
we can't stop winning
I used to use this all day erry day.
And I haven't thought about it for a surprisingly long time. Funny how that happens.
>$100
>$100
if it wasnt so moronic i would assume this was bait
I used matlab a bit for my masters and phd since the university had plenty of licenses.
It wasn't my tool and I'm never paying a penny for it, but I can see why it's popular for academics.
>language is okay
Easy but can be messy in the hands of a shit programmer. Thankfully most scripts tend to be short because the libraries so it isn't a big deal.
>a frick ton of libraries
The reason I used. it's the lazy man's tool. There's a library for everything you could think.
>easy to manage
Everything is basically built in. You don't need to bother with repositories or documentation or anything else.
The majority of academics and researchers and professionals in general don't know anything outside their scope, in particular if it has to do with computers. So big blobs that just work out of the box that are highly specialized for specific tasks can be very useful for those people.
Mathematica is by miles better than Python or Matlab
>Only need to look in official doc unlike Python numpy panda crap
>hundred lines of code in other languages is ONE FUNCTION in Mathematica
>Beautiful typeset output
>feels like REAL symbolic programming unlike hack sym in Matlab or SymPy
>What does matlab have that other languages don't?
A huge toolbox and documentation.
I was thrown into a post-semester computer vision workshop. I had never used Matlab before. But on day 2 I was recognizing and tracking a moving object in a video clip. I doubt I could have achieved success so quickly with any other toolset.
just use opencv and follow one of the dozen pajeet guides.
Idk why so many people jerk matlab off for something so simple it has its uses but thats not it.
I get it for free from my university and use it in my research a lot
I think it has the best syntax for doing computational engineering/science work
If the array starts with 1 then -1 can be the last element
Is that meant to be a criticism?
0-based indexing brainlets be like
>googoo gaagaa i cant understand anything that isnt my precious c
>ctrl+F R
>0 results
Lmao at all of you
>array starting with 1?
In pascal, an array can start with any number.
Even with π?
a lot of things people do in academics is easily doable with something in the matlab library which is why its useful, but it also makes me want pull my hair out because shit stops working as expected and never you never know why
>Are cucks really paying $100 for array starting with 1
yes
>python
<can't search packages using pip
<can't upgrade every python program installed with pip with pip
I thought this shit was suppose to be easy.
It filters pajeets.
>paying $100
>for a fricking mathematical program
I prefer to use actual real programming languages like Fortran or Pascal and prefer Axiom or Maxima in case of a CAS
I like Simulink but Matlab is utter garbage, literally overpriced shit that Python can do for free
none janky python shit. It just fricking works and you can call a human being for support.
Good luck talking to python creators if you're a nobody.
They made me use this shit in school (non-CS hard science) and I'm not gonna lie it was a little hard at first, but then I kind of realized all the things you could do with it and was impressed. Then I graduated and have been doing moronic shit in MS excel 9 hours a day. I want to die. I miss you MAT-chan.
>-1
>87267877
>reverse
so this is the power of python users. good morning sirs.
are people really still trying to solve the countdown thing... cmon guys
count = list(range(0, n))
while len(count) > 0:
print(len(count))
count.pop(0)
this better be a troll
the code wins the challenge...
>no subtraction (anything with minus symbols)
check
>no string reverse
check
>no recursion
check
>less than 5 LOC
check
>>no subtraction (anything with minus symbols)
a minus symbol doesn't indicate a substraction operation you fricking dunce
writing "-1" does not involve substraction
it seems you missed the big text saying
>anything with minus symbols
it seems you missed the part where a minus symbol is not a subtraction operation
if you and the original image meant those to be two separate conditions, they should be stated as separate conditions
just saying
>remember, no russian (no slavic languages)
and then getting mad when someone speaks polish is something a woman would do
lol the text explicitly stated that minus symbol should not be used and you are still trying to argue? you might be mentally damaged
braindead post
They're too dumb for j
>Unironically using list() and reverse() for something so simple
You're already using python why are you still bad at programming
I'm not using reverse()
I'm using reversed()
They are very different. I am genuinely curious how you would write it in python more efficiently and have it execute faster. I would learn something.
>license
lol
lmao
I've used notebooks before on Matlab and Rstudio, but I'm trying GNU Octave and can't find an equivalent. The jupyter extension doesn't work on Windows. Shall I just go with python and Jupyter notebooks?
Matlab is not programming you dumbass. Its scientifical computing.
You dont need to
import basimath.py from basicmathpython
import basicmatrix...
import gaymondadfactorybase...
if __name__==__main__
...
Python is horrible. Its bad scientific language and bad programming language. Matlab excels at first and is is just able program language as python.
Numpy/Scipy are way better at scientific computing than Matlab.
And once you need large scientific data, nothing compares to the Dask/xarray combo. Matlab just explodes.
Probably untrue and you never personally handle such datasets anyway. Margin cases
>you never personally handle such datasets
lmao, nice fizzbuzzer opinion
No idea. My uni gave a license to every student regardless of the degree they are studying.
All I do is stuff related to statistics and data analysis at a basic level, so I ended pirating SPSS. I probably can do the same things with MATLAB, but without training on using it I'm clueless.
I remember using matlab in my first week of uni, made making simple controllers about as difficult as following lego instructions.
>python users are seething about matlab existence
Lmao, the whole point is doing data science and engineering applications without need to deal with programming.
Sorry…but I use R
i bet you thought this was clever
I'll just leave this here https://www.youtube.com/watch?v=nS4o30_gi_w
Price: $0.00
I pirated it but the only thing I like is the list of variables and their values, wish VSCode had something like that